random stuff

This commit is contained in:
Frank Villaro-Dixon 2015-03-01 18:44:25 +01:00
parent ab43ca7a2c
commit 091a95ef05
2 changed files with 16 additions and 3 deletions

View file

@ -64,6 +64,18 @@ case $1 in
esac esac
;; ;;
"leds")
case $2 in
"power")
case $3 in
"off")
echo 0 | sudo tee /sys/devices/platform/thinkpad_acpi/leds/tpacpi::power/brightness
;;
esac
;;
esac
;;
"monitor") "monitor")
case $2 in case $2 in
@ -115,7 +127,7 @@ case $1 in
if [ ${#SONG} -gt $maxSL ]; then if [ ${#SONG} -gt $maxSL ]; then
SONG=`echo $SONG | cut -c1-$maxSL`. SONG=`echo $SONG | cut -c1-$maxSL`.
fi fi
BTC=`BTC_stats.sh` ############ BTC=`BTC_stats.sh`
if [ -n `mpc | grep paused` ]; then if [ -n `mpc | grep paused` ]; then
STAT="♫" STAT="♫"
@ -127,8 +139,9 @@ case $1 in
MEMCACHED=`awk '/Cached/ {printf( "%.0f", $2 / 10240 )}' /proc/meminfo` MEMCACHED=`awk '/Cached/ {printf( "%.0f", $2 / 10240 )}' /proc/meminfo`
MEMFT=`echo "$MEMFREE + $MEMCACHED" | bc` MEMFT=`echo "$MEMFREE + $MEMCACHED" | bc`
xsetroot -name "$VOLUME [$STAT $SONG] :: Bat $BATT_PCT $BATT_TIME :: $BTC :: $DATE" || true xsetroot -name "$VOLUME [$STAT $SONG] :: Bat $BATT_PCT $BATT_TIME :: $DATE" || true
$0 conf-ifaces $0 conf-ifaces
$0 leds power off
;; ;;
"wallpaper") "wallpaper")
@ -161,7 +174,6 @@ case $1 in
$0 init-ethernet & $0 init-ethernet &
$0 init-mouse $0 init-mouse
$0 wallpaper $0 wallpaper
echo 0 | sudo tee ./devices/platform/thinkpad_acpi/leds/tpacpi::power/brightness
;; ;;
"init-mouse") "init-mouse")

View file

@ -45,3 +45,4 @@ genevoises
Évolène Évolène
Optionnellement Optionnellement
Milankovitch Milankovitch
hédonique