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 ))
mn=$(( (val * 60) / rate - hr * 60 ))
case "$hr" in
case $hr in
0)
case "$mn" in
case $mn in
0) notify-send "Battery fully charged" ;;
1) notify-send "1 minute remaining" ;;
*) notify-send "$mn minutes remaining" ;;
esac
;;
1)
case "$mn" in
case $mn in
0) notify-send "1 hour remaining" ;;
1) notify-send "1 hour, 1 minute remaining" ;;
*) notify-send "1 hour, $mn minutes remaining" ;;
esac
;;
*)
case "$mn" in
case $mn in
0) notify-send "$hr hours remaining" ;;
1) notify-send "$hr hours, 1 minute remaining" ;;
*) notify-send "$hr hours, $mn minutes remaining" ;;

View file

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

View file

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

View file

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