Permalink
Browse files

- robustified confscript

 - better wmii status bar
 - minor .emacs changes
  • Loading branch information...
1 parent 05b2e1e commit e7c25876c85a89df2d9f6e470baf0db87c0fe3ed @noahlt committed Jun 23, 2008
Showing with 24 additions and 7 deletions.
  1. +8 −3 .confscript.sh
  2. +13 −3 .emacs
  3. +3 −1 .wmii-3.5/wmiirc
View
@@ -1,12 +1,13 @@
#!/bin/bash
-USER=noah
+USER=`whoami`
# add wicd to the apt repositories
-echo deb http://apt.wicd.net gutsy extras
+UBUNTU_VERSION=`grep CODENAME /etc/lsb-release | sed s/.*=//`
+echo deb http://apt.wicd.net $UBUNTU_VERSION extras | sudo tee -a /etc/apt/sources.list
# install stuff
-sudo apt-get install wmii emacs rxvt gpomme wicd
+sudo apt-get install wmii emacs rxvt gpomme python-setuptools wicd
# copy wmii configuration files
WMII_VERSION=`wmii -v | sed s/,.*//`
@@ -16,3 +17,7 @@ then
sudo chown $USER ~/$WMII_VERSION/*
sudo chgrp $USER ~/$WMII_VERSION/*
fi
+
+
+# web dev stuff
+sudo easy_install pylons
View
16 .emacs
@@ -1,10 +1,20 @@
;; noah tye's .emacs file.
-(global-set-key "\C-w" 'backward-kill-word)
-(global-set-key "\C-x\C-k" 'kill-region)
-(global-set-key "\C-c\C-k" 'kill-region)
+(global-set-key (kbd "C-w") 'backward-kill-word)
+(global-set-key (kbd "C-x C-k") 'kill-region)
+(global-set-key (kbd "C-c C-k") 'kill-region)
+(global-set-key (kbd "C-a") 'line-start)
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
+(defun line-start ()
+ "Go to the beginning of the text on a line; if already there, go to
+ the beginning of the line."
+ (interactive)
+ (let ((p (point)))
+ (beginning-of-line-text)
+ (if (= p (point))
+ (beginning-of-line))))
+
View
@@ -55,7 +55,9 @@ wmiir write /tagrules <<!
# Status Bar Info
status() {
- echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date)
+ echo -n $((`uptime | sed 's/.*: //; s/,.*//; s/\.//'` / 2))% '|' \
+ $(acpi | sed 's/.*\([0-9][0-9]%\).*/\1/') '|' \
+ $(date +'%a %b %e %l:%M')
}
# Event processing

0 comments on commit e7c2587

Please sign in to comment.