diff options
Diffstat (limited to '.config/polybar/player-mpris-simple.sh')
-rwxr-xr-x | .config/polybar/player-mpris-simple.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/.config/polybar/player-mpris-simple.sh b/.config/polybar/player-mpris-simple.sh deleted file mode 100755 index 938ac21..0000000 --- a/.config/polybar/player-mpris-simple.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -player_status=$(playerctl status 2> /dev/null) - -if [ "$player_status" = "Playing" ] || [ "$player_status" = "Paused" ]; then - echo "$(playerctl metadata artist) - $(playerctl metadata title)" | awk -v len=60 '{ if (length($0) > len) print substr($0, 1, len-3) "..."; else print; }' -else - echo "" -fi |