aboutsummaryrefslogtreecommitdiff
path: root/bin/wms
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wms')
-rwxr-xr-xbin/wms2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/wms b/bin/wms
index a2df5bf..6710e8f 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"