From be4074dfcfd22988e7954a8072e3e87ad00fca4c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 12 Jan 2024 08:56:10 -0300 Subject: bin/volume: Fix rotation beyond 2 sinks --- bin/player | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/player') diff --git a/bin/player b/bin/player index 129942e..fd7d11b 100755 --- a/bin/player +++ b/bin/player @@ -79,7 +79,7 @@ eval "$(assert-arg -- "$ACTION" 'ACTION')" CURRENT_PLAYER_PATH="$XDG_CACHE_HOME"/euandreh-mpris-player.txt -CURRENT_PLAYER="$(cat "$CURRENT_PLAYER_PATH" ||:)" +CURRENT_PLAYER="$(cat "$CURRENT_PLAYER_PATH" 2>/dev/null ||:)" AVAILABLE_PLAYERS="$(playerctl --list-all | LANG=POSIX.UTF-8 sort)" pick_first() { -- cgit v1.2.3