aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-20 11:24:31 -0300
committerEuAndreh <eu@euandre.org>2023-02-20 11:24:31 -0300
commitea4d55453b9f408837a7a5f473c01832249e35ee (patch)
tree3ff6a9cb4e78910edd7c439029281fe095313dae /bin
parentbin/check: Add "Examples" section to the help string (diff)
downloaddotfiles-ea4d55453b9f408837a7a5f473c01832249e35ee.tar.gz
dotfiles-ea4d55453b9f408837a7a5f473c01832249e35ee.tar.xz
bin/wms: Use player(1) over accessing the cache file
Diffstat (limited to 'bin')
-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"