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,7 +1,8 @@
#!/bin/sh
CARD=$(pactl list cards short | grep '1f.3' | awk '{print $2}')
CURRENT_SINK=$(pactl info | grep "Default Sink:")
if [[ "$CURRENT_SINK" == *"iec958"* ]]; then
dunstctl close-all
if [ "$CURRENT_SINK" = *"iec958"* ]; then
pactl set-card-profile $CARD output:analog-stereo
notify-send "analog out active" -i :
else