random stuff
This commit is contained in:
parent
ab43ca7a2c
commit
091a95ef05
|
@ -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")
|
||||
|
|
|
@ -45,3 +45,4 @@ genevoises
|
|||
Évolène
|
||||
Optionnellement
|
||||
Milankovitch
|
||||
hédonique
|
||||
|
|
Loading…
Reference in a new issue