Removed unnecessary quotes after case from scripts

This commit is contained in:
Ashish Kumar Yadav 2020-10-30 22:25:41 +05:30
parent d6f732774c
commit c2852ace62
4 changed files with 7 additions and 7 deletions

View file

@ -16,23 +16,23 @@ fi
hr=$(( val / rate )) hr=$(( val / rate ))
mn=$(( (val * 60) / rate - hr * 60 )) mn=$(( (val * 60) / rate - hr * 60 ))
case "$hr" in case $hr in
0) 0)
case "$mn" in case $mn in
0) notify-send "Battery fully charged" ;; 0) notify-send "Battery fully charged" ;;
1) notify-send "1 minute remaining" ;; 1) notify-send "1 minute remaining" ;;
*) notify-send "$mn minutes remaining" ;; *) notify-send "$mn minutes remaining" ;;
esac esac
;; ;;
1) 1)
case "$mn" in case $mn in
0) notify-send "1 hour remaining" ;; 0) notify-send "1 hour remaining" ;;
1) notify-send "1 hour, 1 minute remaining" ;; 1) notify-send "1 hour, 1 minute remaining" ;;
*) notify-send "1 hour, $mn minutes remaining" ;; *) notify-send "1 hour, $mn minutes remaining" ;;
esac esac
;; ;;
*) *)
case "$mn" in case $mn in
0) notify-send "$hr hours remaining" ;; 0) notify-send "$hr hours remaining" ;;
1) notify-send "$hr hours, 1 minute remaining" ;; 1) notify-send "$hr hours, 1 minute remaining" ;;
*) notify-send "$hr hours, $mn minutes remaining" ;; *) notify-send "$hr hours, $mn minutes remaining" ;;

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
case "$1" in case $1 in
1) exec termite -e "htop -s PERCENT_CPU" ;; 1) exec termite -e "htop -s PERCENT_CPU" ;;
2) exec termite -e "htop" ;; 2) exec termite -e "htop" ;;
3) exec termite -e "htop -s PERCENT_MEM" ;; 3) exec termite -e "htop -s PERCENT_MEM" ;;

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
case "$1" in case $1 in
1) pamixer --toggle-mute ;; 1) pamixer --toggle-mute ;;
2) exec pavucontrol-qt ;; 2) exec pavucontrol-qt ;;
3) pamixer --set-volume 60 ;; 3) pamixer --set-volume 60 ;;

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
pactl subscribe | pactl subscribe |
while read -r output ; do while read -r output ; do
case "$output" in case $output in
*"sink "*) sigdwmblocks 1 ;; *"sink "*) sigdwmblocks 1 ;;
esac esac
done done