diff options
| author | Daniel <[email protected]> | 2024-11-11 16:57:57 -0500 |
|---|---|---|
| committer | Daniel <[email protected]> | 2024-11-11 16:57:57 -0500 |
| commit | 78c05abf36f0c44f96d5e0d68c9100a1588866a0 (patch) | |
| tree | 0fed30f10f2d1fa68038c8a88b8837d293f77703 | |
| parent | a6ab365ffb97bdd9ce90bcf0107bf268c3031cd3 (diff) | |
add pause/stop status
| -rwxr-xr-x | bin/.local/bin/scripts/status/music | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/.local/bin/scripts/status/music b/bin/.local/bin/scripts/status/music index 5bc2e43..724a7ca 100755 --- a/bin/.local/bin/scripts/status/music +++ b/bin/.local/bin/scripts/status/music @@ -38,6 +38,14 @@ truncated_title=$(truncate "$title") # Format the output as "artist - title" current_track="$truncated_artist - $truncated_title" -icon="🎵" +playerstatus=$(playerctl status) + +case "$playerstatus" in + "Playing") icon="🎵" ;; + "Paused") icon="⏸️" ;; + "Stopped") icon="⏹️" ;; + "*") icon="" ;; +esac + # Print the current track echo "$icon $current_track" |
