diff --git a/Utils/octopus.sh b/Utils/octopus.sh index 66302e7..ba7da71 100755 --- a/Utils/octopus.sh +++ b/Utils/octopus.sh @@ -64,6 +64,18 @@ case $1 in 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") case $2 in @@ -115,7 +127,7 @@ case $1 in if [ ${#SONG} -gt $maxSL ]; then SONG=`echo $SONG | cut -c1-$maxSL`. fi - BTC=`BTC_stats.sh` +############ BTC=`BTC_stats.sh` if [ -n `mpc | grep paused` ]; then STAT="♫" @@ -127,8 +139,9 @@ case $1 in MEMCACHED=`awk '/Cached/ {printf( "%.0f", $2 / 10240 )}' /proc/meminfo` 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 leds power off ;; "wallpaper") @@ -161,7 +174,6 @@ case $1 in $0 init-ethernet & $0 init-mouse $0 wallpaper - echo 0 | sudo tee ./devices/platform/thinkpad_acpi/leds/tpacpi::power/brightness ;; "init-mouse") diff --git a/vim/spell/en.utf-8.add b/vim/spell/en.utf-8.add index 6f1e5da..0b4085e 100644 --- a/vim/spell/en.utf-8.add +++ b/vim/spell/en.utf-8.add @@ -45,3 +45,4 @@ genevoises Évolène Optionnellement Milankovitch +hédonique