Finished hacker theme mostly and added some other configs

This commit is contained in:
ManOfGoldForever 2026-04-03 10:57:53 -04:00
parent 0c499ecbd6
commit ad06f5284e
91 changed files with 1928 additions and 3 deletions

View file

@ -0,0 +1,18 @@
#!/bin/sh
class=$(playerctl metadata --player=spotify_player --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=spotify_player --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"\"}"