feat: toggling audio between speakers
This commit is contained in:
1
scripts/status
Normal file
1
scripts/status
Normal file
@@ -0,0 +1 @@
|
||||
headphones
|
||||
12
scripts/toggle-speakers.bash
Normal file
12
scripts/toggle-speakers.bash
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ~/Code/dotfiles/scripts
|
||||
status=$(cat ./status)
|
||||
|
||||
if [ $status == "speakers" ]; then
|
||||
wpctl set-default 62
|
||||
echo "headphones" > ./status
|
||||
else
|
||||
wpctl set-default 68
|
||||
echo "speakers" > ./status
|
||||
fi
|
||||
Reference in New Issue
Block a user