Give EWW scripts proper extensions
This commit is contained in:
parent
448bdfc231
commit
287df92d65
13 changed files with 11 additions and 11 deletions
10
eww/scripts/swap-audio-sink.sh
Executable file
10
eww/scripts/swap-audio-sink.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/env sh
|
||||
|
||||
HEADPHONES="$(~/.config/eww/scripts/get-audio-device-id 'headphones')"
|
||||
SPEAKERS="$(~/.config/eww/scripts/get-audio-device-id 'speakers')"
|
||||
|
||||
if [ "$(pactl get-default-sink)" = "${SPEAKERS}" ] ; then
|
||||
pactl set-default-sink "${HEADPHONES}"
|
||||
else
|
||||
pactl set-default-sink "${SPEAKERS}"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue