Added some features to the wmii statusbar

This commit is contained in:
Stefan Ritter 2009-07-23 00:56:07 +02:00
parent 0ab575d26c
commit 63bfd2a0ab
3 changed files with 3 additions and 51 deletions

View file

@ -1,5 +1,5 @@
ReadTags = yes
MusicDir = "/home/xeno/media/mp3/"
MusicDir = "/home/gideonstar/media/mp3/"
Sort = FileName
ShowStreamErrors = no
Mp3IgnoreCRCErrors = yes

View file

@ -20,7 +20,7 @@ set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)
WMII_MENU="dmenu -b -fn '$WMII_FONT' -nf '$1' -nb '$2' -sf '$4' -sb '$5'"
WMII_9MENU="wmii9menu -font '$WMII_FONT' -nf '$1' -nb '$2' -sf '$4' -sb '$5' -br '$6'"
WMII_TERM="x-terminal-emulator"
LOCK="xscreensaver-command -lock"
LOCK="xtrlock"
# Column Rules
wmiir write /colrules <<!
@ -38,7 +38,7 @@ wmiir write /tagrules <<!
# Status Bar Info
status() {
echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date)
echo -n $(acpi | awk '{print $4}' | sed 's/,//') '|' $(ip r | head -n 1 | awk '{print $9}') '|' $(uptime | sed 's/.*://; s/,//g') '|' $(date)
}
# Event processing

48
zshrc
View file

@ -89,55 +89,7 @@ shot() {
fi
}
gpdf() {
xpdf =(gpg --decrypt $1)
}
md() {
mkdir $1
cd $1
}
ausrede() {
if [ $RANDOM -lt 16384 ]; then
fortune bofh-excuses
else
nc towel.blinkenlights.nl 666
fi
}
vm() {
SLEEP=2
if [ "$1" = "winxp" ]; then
VBoxManage startvm "Windows XP Pro SP1" -type vrdp
sleep $SLEEP
rdesktop-vrdp -k de localhost
elif [ "$1" = "freebsd" ]; then
VBoxManage startvm "FreeBSD 7.1" -type vrdp
sleep $SLEEP
rdesktop-vrdp -k de localhost
elif [ "$1" = "win2003" ]; then
VBoxManage startvm "Windows Server 2003 Enterprise" -type vrdp
sleep $SLEEP
rdesktop-vrdp -k de localhost
elif [ "$1" = "sid" ]; then
VBoxManage startvm "Debian Sid" -type vrdp
sleep $SLEEP
rdesktop-vrdp -k de localhost
elif [ "$1" = "" ]; then
echo "winxp"
echo "win2003"
echo "freebsd"
echo "sid"
fi
}
up() {
if [ -e ./.svn ]; then
svn up
elif [ -e ./.git ]; then
git pull
else
echo Kein Repository!
fi
}