diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-02-23 17:12:32 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-02-23 17:12:32 +0800 |
| commit | d0d4ca2ae52c102ad3bd5117e6039c5e29b6fe35 (patch) | |
| tree | 4cbb65d2fb557c5b48f30a9d8f813066e9b9a13f /song-status | |
| parent | 8f366cb39660abc04738b49b6b80ecfcc77fc610 (diff) | |
song-status: still output player data even if nothing is playing
Diffstat (limited to 'song-status')
| -rwxr-xr-x | song-status | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/song-status b/song-status index 6550d0d..be7bd55 100755 --- a/song-status +++ b/song-status @@ -2,16 +2,15 @@ player_name=$(playerctl metadata --format '{{playerName}}') player_status=$(playerctl status) -if [[ "$player_status" == "Playing" ]]; then +# if [[ "$player_status" == "Playing" ]]; then if [[ "$player_name" == "spotify" ]]; then - song_info=$(playerctl metadata --format '{{title}} {{artist}}') + playerctl metadata --format '{{title}} {{artist}}' elif [[ "$player_name" == "firefox" ]]; then - song_info=$(playerctl metadata --format '{{title}} {{artist}}') + playerctl metadata --format '{{title}} {{artist}}' elif [[ "$player_name" == "mpd" ]]; then - song_info=$(playerctl metadata --format '{{title}} {{artist}}') + playerctl metadata --format '{{title}} {{artist}}' elif [[ "$player_name" == "chromium" ]]; then - song_info=$(playerctl metadata --format '{{title}} {{artist}}') + playerctl metadata --format '{{title}} {{artist}}' fi -fi +# fi -echo "$song_info" |
