diff options
| author | JackJ30 <jackqjamison@proton.me> | 2024-09-09 00:07:54 -0400 |
|---|---|---|
| committer | JackJ30 <jackqjamison@proton.me> | 2024-09-09 00:07:54 -0400 |
| commit | e57370dbf542b165e430cc8c708677625a9f8ed4 (patch) | |
| tree | 411647a48d8d8fedf9434653e2c92f059bebfa82 /.config/waybar/modules/spotify.sh | |
| parent | ee71cba8d51ea5635ebda2ba0c776e8378706c6d (diff) | |
laptop config
Diffstat (limited to '.config/waybar/modules/spotify.sh')
| -rwxr-xr-x | .config/waybar/modules/spotify.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/.config/waybar/modules/spotify.sh b/.config/waybar/modules/spotify.sh deleted file mode 100755 index 1d13620..0000000 --- a/.config/waybar/modules/spotify.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -class=$(playerctl metadata --player=spotify --format '{{lc(status)}}') -icon="" - -if [[ $class == "playing" ]]; then - info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}') - if [[ ${#info} > 40 ]]; then - info=$(echo $info | cut -c1-40)"..." - fi - text=$info" "$icon -elif [[ $class == "paused" ]]; then - text=$icon -elif [[ $class == "stopped" ]]; then - text="" -fi - -echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}" - |
