updated terminology in scripts and made set default actually set the default sink

This commit is contained in:
Solomon Laing 2021-03-23 23:03:46 +10:30
parent c5890c020e
commit cfd82b29cf
4 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
default_loc=/tmp/pactl-default-source default_loc=/tmp/pactl-default-sink
if [ ! -f "$default_loc" ] ; then if [ ! -f "$default_loc" ] ; then
/home/solomon/.scripts/set-default-card /home/solomon/.scripts/set-default-card

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
default_loc=/tmp/pactl-default-source default_loc=/tmp/pactl-default-sink
if [ ! -f "$default_loc" ] ; then if [ ! -f "$default_loc" ] ; then
/home/solomon/.scripts/set-default-card /home/solomon/.scripts/set-default-card

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
choice=$(pactl list short sinks | awk '{print $2}' | dmenu -i -p "which source should be default?") choice=$(pactl list short sinks | awk '{print $2}' | dmenu -i -p "which sink should be default?")
rm /tmp/pactl-default-source --force # to ignore if it isn't there rm /tmp/pactl-default-sink --force # to ignore if it isn't there
echo "$choice" >> /tmp/pactl-default-source echo "$choice" >> /tmp/pactl-default-sink
pactl set-default-sink $choice # make sure that the chosen sink is the

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
default_loc=/tmp/pactl-default-source default_loc=/tmp/pactl-default-sink
if [ ! -f "$default_loc" ] ; then if [ ! -f "$default_loc" ] ; then
/home/solomon/.scripts/set-default-card /home/solomon/.scripts/set-default-card