worf: Update yabay/sketchybar/alacritty config

This commit is contained in:
2025-02-18 21:41:32 +01:00
parent da2ca7f42e
commit 47db333feb
31 changed files with 1612 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/bash
update_media() {
STATE="$(echo "$INFO" | jq -r '.state')"
if [ "$STATE" = "playing" ]; then
APP=$(echo "$INFO" | jq -r '.app')
MEDIA="$(echo "$INFO" | jq -r '.title + " - " + .artist')"
sketchybar --set $NAME label="$MEDIA" drawing=on
else
sketchybar --set $NAME drawing=off
fi
}
case "$SENDER" in
"media_change") update_media
;;
esac