Updated blocks
This commit is contained in:
parent
c0aabb910a
commit
b552e0b488
4
blocks.h
4
blocks.h
|
@ -15,12 +15,10 @@ static Block blocks[] = {
|
||||||
/* pathu pathc interval signal */
|
/* pathu pathc interval signal */
|
||||||
{ PATH("hotspot.sh"), PATH("hotspot_button.sh"), -1, 3},
|
{ PATH("hotspot.sh"), PATH("hotspot_button.sh"), -1, 3},
|
||||||
|
|
||||||
{ PATH("time.sh"), NULL, 30, 0},
|
{ PATH("time.sh"), NULL, 30, 6},
|
||||||
|
|
||||||
{ PATH("calendar.sh"), PATH("calendar_button.sh"), 60, 6},
|
{ PATH("calendar.sh"), PATH("calendar_button.sh"), 60, 6},
|
||||||
|
|
||||||
// { PATH("mail.sh"), PATH("mail_button.sh"), 30, 2},
|
|
||||||
|
|
||||||
{ PATH("volume.sh"), PATH("volume_button.sh"), 0, 1},
|
{ PATH("volume.sh"), PATH("volume_button.sh"), 0, 1},
|
||||||
|
|
||||||
{ PATH("cpu_temp.sh"), PATH("cpu_temp_button.sh"), 1, 5},
|
{ PATH("cpu_temp.sh"), PATH("cpu_temp_button.sh"), 1, 5},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/dash
|
#!/bin/dash
|
||||||
case "$1" in
|
case "$1" in
|
||||||
1) exec termite -e "htop -s PERCENT_CPU" ;;
|
1) ;;
|
||||||
2) exec termite -e "htop" ;;
|
2) ;;
|
||||||
3) exec termite -e "htop -s PERCENT_MEM" ;;
|
3) ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/dash
|
#!/bin/dash
|
||||||
case "$1" in
|
case "$1" in
|
||||||
1|2|3) echo "turn off hotspot" ;;
|
1|2|3) ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/dash
|
|
||||||
|
|
||||||
crit=70
|
|
||||||
|
|
||||||
read -r temp </sys/class/thermal/thermal_zone0/temp
|
|
||||||
temp=${temp%???}
|
|
||||||
|
|
||||||
if [ "$temp" -ge "$crit" ] ; then
|
|
||||||
echo "${temp}°C"
|
|
||||||
else
|
|
||||||
echo "${temp}°C"
|
|
||||||
fi
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/dash
|
|
||||||
case "$1" in
|
|
||||||
1) setsid -f termite -e "htop -s PERCENT_CPU" ;;
|
|
||||||
2) setsid -f termite -e "htop" ;;
|
|
||||||
3) setsid -f termite -e "htop -s PERCENT_MEM" ;;
|
|
||||||
esac
|
|
Loading…
Reference in a new issue