From cfd82b29cf523c9e8813a298cfc8cb250ac68bc6 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Tue, 23 Mar 2021 23:03:46 +1030 Subject: [PATCH] updated terminology in scripts and made set default actually set the default sink --- .scripts/dec-default-volume | 2 +- .scripts/inc-default-volume | 2 +- .scripts/set-sound-card | 7 ++++--- .scripts/toggle-default-mute | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.scripts/dec-default-volume b/.scripts/dec-default-volume index 2fe400f..417c017 100755 --- a/.scripts/dec-default-volume +++ b/.scripts/dec-default-volume @@ -1,6 +1,6 @@ #!/bin/bash -default_loc=/tmp/pactl-default-source +default_loc=/tmp/pactl-default-sink if [ ! -f "$default_loc" ] ; then /home/solomon/.scripts/set-default-card diff --git a/.scripts/inc-default-volume b/.scripts/inc-default-volume index 96548f7..3f03891 100755 --- a/.scripts/inc-default-volume +++ b/.scripts/inc-default-volume @@ -1,6 +1,6 @@ #!/bin/bash -default_loc=/tmp/pactl-default-source +default_loc=/tmp/pactl-default-sink if [ ! -f "$default_loc" ] ; then /home/solomon/.scripts/set-default-card diff --git a/.scripts/set-sound-card b/.scripts/set-sound-card index 1c36ed8..1dd2a1a 100755 --- a/.scripts/set-sound-card +++ b/.scripts/set-sound-card @@ -1,6 +1,7 @@ #!/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 -echo "$choice" >> /tmp/pactl-default-source \ No newline at end of file +rm /tmp/pactl-default-sink --force # to ignore if it isn't there +echo "$choice" >> /tmp/pactl-default-sink +pactl set-default-sink $choice # make sure that the chosen sink is the \ No newline at end of file diff --git a/.scripts/toggle-default-mute b/.scripts/toggle-default-mute index 08c1477..758310a 100755 --- a/.scripts/toggle-default-mute +++ b/.scripts/toggle-default-mute @@ -1,6 +1,6 @@ #!/bin/bash -default_loc=/tmp/pactl-default-source +default_loc=/tmp/pactl-default-sink if [ ! -f "$default_loc" ] ; then /home/solomon/.scripts/set-default-card