Updated blocks

This commit is contained in:
Ashish Kumar Yadav 2020-07-10 04:37:58 +05:30
parent c0aabb910a
commit b552e0b488
5 changed files with 5 additions and 25 deletions

View file

@ -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},

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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