diff options
author | Vinny Meller | 2021-10-04 23:43:24 -0500 |
---|---|---|
committer | Vinny Meller | 2021-10-04 23:43:24 -0500 |
commit | d84c9f569f687a28b6efc80d730ca0b39c76d544 (patch) | |
tree | 6b7351fc039914e8e0e2e42024045d8daa21b054 /pulseaudio-nextsink | |
parent | edc0500fa6285f9cf974d1f86649b063606ded5c (diff) | |
download | aur-pulseaudio-nextsink.tar.gz |
fix stuff I hope
Diffstat (limited to 'pulseaudio-nextsink')
-rwxr-xr-x | pulseaudio-nextsink | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pulseaudio-nextsink b/pulseaudio-nextsink index 4267bb9150e6..6c13551dde52 100755 --- a/pulseaudio-nextsink +++ b/pulseaudio-nextsink @@ -15,6 +15,8 @@ function change_sink_inputs_to_default_sink_num { } +# Get current default sink. Iterate through list to find the one that comes next +# Set the 1st sink in the list to default after loop ends without exiting default_sink_line=$(pactl list short sinks | grep $(pactl get-default-sink)) default_sink_arr=( $default_sink_line ) default_sink_num=${default_sink_arr[0]} # The number of the currently default sink. Not using the whole line because they can change frequently |