Swayscript : Fix sound output array access.

This commit is contained in:
Dmitry Voronin 2024-07-28 23:37:49 +03:00
parent 648d22cb42
commit 950d4be9e5
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -4,7 +4,7 @@
local IFS=$'\n'
local current=$(pactl get-default-sink)
local all=($(pactl list short sinks | cut -f2))
local i_current=$(_index_of ''${current} ''${all})
local i_current=$(_index_of ''${current} ''${all[@]})
local i_total=''${#all[@]}; ((i_total--))
local i_target=0