make POSIX sh compliant

This commit is contained in:
2025-12-18 14:12:29 -08:00
parent 1f48d9808c
commit cdae221acf
11 changed files with 63 additions and 20 deletions

View File

@ -1,11 +1,11 @@
#!/bin/sh
INCREMENT="2"
if [[ "$1" == "up" ]]; then
if [ "$1" = "up" ]; then
wpctl set-volume @DEFAULT_SINK@ $INCREMENT%+
elif [[ "$1" == "down" ]]; then
elif [ "$1" = "down" ]; then
wpctl set-volume @DEFAULT_SINK@ $INCREMENT%-
elif [[ "$1" == "mute" ]]; then
elif [ "$1" = "mute" ]; then
wpctl set-mute @DEFAULT_SINK@ toggle
fi