diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-08-24 01:47:36 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-08-24 01:47:36 -0400 |
| commit | 6c4fc5e429f362c0c5544d34f17285c4cfc16ba8 (patch) | |
| tree | 47177652c89aeafe7dde2396277c76e1c464eec1 /home-config/waybar/modules/spotify.sh | |
| parent | 72d1c1aae5c6ef87a88e81111a74d7b041c57a22 (diff) | |
remove old filesand bump nix-files
Diffstat (limited to 'home-config/waybar/modules/spotify.sh')
| -rwxr-xr-x | home-config/waybar/modules/spotify.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/home-config/waybar/modules/spotify.sh b/home-config/waybar/modules/spotify.sh deleted file mode 100755 index fc732a1..0000000 --- a/home-config/waybar/modules/spotify.sh +++ /dev/null | |||
| @@ -1,19 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | class=$(playerctl metadata --format '{{lc(status)}}') | ||
| 4 | icon="" | ||
| 5 | |||
| 6 | if [[ $class == "playing" ]]; then | ||
| 7 | info=$(playerctl metadata --format '{{artist}} - {{title}}') | ||
| 8 | if [[ ${#info} > 40 ]]; then | ||
| 9 | info=$(playerctl metadata --format '{{title}}' | cut -c1-40)"..." | ||
| 10 | fi | ||
| 11 | text=$info" "$icon | ||
| 12 | elif [[ $class == "paused" ]]; then | ||
| 13 | text=$icon | ||
| 14 | elif [[ $class == "stopped" ]]; then | ||
| 15 | text="" | ||
| 16 | fi | ||
| 17 | |||
| 18 | echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}" | ||
| 19 | |||
