Cooler status bar dwm

This commit is contained in:
Frank Villaro-Dixon 2013-07-07 02:04:02 +02:00
parent d8919e9805
commit 83e2cce12b
2 changed files with 7 additions and 2 deletions

View file

@ -49,14 +49,14 @@ case $1 in
;; ;;
"refresh") "refresh")
DATE=`date +"%A %d, %H:%M:%S - %s"` DATE=`date +"%A %d, %H:%M - %s"`
BATT_PCT=$(acpi -b | cut -d, -f2 | cut -d" " -f2) BATT_PCT=$(acpi -b | cut -d, -f2 | cut -d" " -f2)
BATT_TIME=$(acpi -b | cut -d, -f3 | cut -d" " -f2) BATT_TIME=$(acpi -b | cut -d, -f3 | cut -d" " -f2)
#BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' ) #BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' )
VOLUME=`amixer get Master | tail -n 2 | head -n 1 | cut -d' ' -f7` VOLUME=`amixer get Master | tail -n 2 | head -n 1 | cut -d' ' -f7`
MEM=`awk '/MemFree/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo` MEM=`awk '/MemFree/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo`
xsetroot -name "$VOLUME :: $MEM :: $BATT_PCT $BATT_TIME :: $DATE" xsetroot -name "Vol $VOLUME :: $MEM Free :: Bat $BATT_PCT $BATT_TIME :: $DATE"
;; ;;
"wallpaper") "wallpaper")

View file

@ -23,3 +23,8 @@ host bor-git
host chaudiere host chaudiere
port 222 port 222
host frank-tp
hostname 192.168.42.20
port 1337