aboutsummaryrefslogtreecommitdiff
path: root/bin/player
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-01-12 08:56:10 -0300
committerEuAndreh <eu@euandre.org>2024-01-12 08:56:10 -0300
commitbe4074dfcfd22988e7954a8072e3e87ad00fca4c (patch)
treeb3245427c623baa14ffa3213067fd66a0a6795c8 /bin/player
parentetc/sh/rc: Add idiff() utility function (diff)
downloaddotfiles-be4074dfcfd22988e7954a8072e3e87ad00fca4c.tar.gz
dotfiles-be4074dfcfd22988e7954a8072e3e87ad00fca4c.tar.xz
bin/volume: Fix rotation beyond 2 sinks
Diffstat (limited to 'bin/player')
-rwxr-xr-xbin/player2
1 files changed, 1 insertions, 1 deletions
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() {