From ea4d55453b9f408837a7a5f473c01832249e35ee Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 20 Feb 2023 11:24:31 -0300 Subject: bin/wms: Use player(1) over accessing the cache file --- bin/wms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wms b/bin/wms index a2df5bfa..6710e8fd 100755 --- a/bin/wms +++ b/bin/wms @@ -106,7 +106,7 @@ case "$ACTION" in dunstctl close ;; mpris) - PLAYER="$(cat "$XDG_CACHE_HOME"/euandreh-mpris-player.txt)" + PLAYER="$(player current)" PLAYER_NAME="$(format_player_name "$PLAYER")" PLAYER_TITLE="$(format_player_title "$PLAYER")" printf '%s: %s\n' "$PLAYER_NAME" "$PLAYER_TITLE" -- cgit v1.3