Swayscript : Fix sound output array access.
This commit is contained in:
parent
648d22cb42
commit
950d4be9e5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue