From 7bf0f2e8eaa231ab922f9f35455fb7f2f4ee6922 Mon Sep 17 00:00:00 2001 From: Nico Date: Sun, 5 Oct 2025 23:42:28 +1100 Subject: [PATCH] sketchybar: use drawing directly instead of individual options instead of using background.drawing and label.drawing to change visiblity, now just use the drawing option instead. --- stow/.config/sketchybar/plugins/music.sh | 4 ++-- stow/.config/sketchybar/sketchybarrc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stow/.config/sketchybar/plugins/music.sh b/stow/.config/sketchybar/plugins/music.sh index 0324fb0..d4a0f4b 100755 --- a/stow/.config/sketchybar/plugins/music.sh +++ b/stow/.config/sketchybar/plugins/music.sh @@ -4,7 +4,7 @@ SONG="$(osascript -e 'tell application "Music" to if player state is playing then artist of current track & " - " & name of current track')" if [[ "$(echo $SONG | wc -w | sed 's/ //g')" != "0" ]]; then - sketchybar --set "$NAME" label="${SONG}" background.drawing=true icon.drawing=true + sketchybar --set "$NAME" label="${SONG}" drawing=true else - sketchybar --set "$NAME" label="" background.drawing=false icon.drawing=false + sketchybar --set "$NAME" label="" drawing=false fi diff --git a/stow/.config/sketchybar/sketchybarrc b/stow/.config/sketchybar/sketchybarrc index 6b3ace8..f13c205 100755 --- a/stow/.config/sketchybar/sketchybarrc +++ b/stow/.config/sketchybar/sketchybarrc @@ -79,14 +79,14 @@ sketchybar --add item music left \ click_script="osascript -e 'tell application \"Music\" to playpause'" \ background.padding_right=0 \ background.padding_left=0 \ - background.drawing=false \ + drawing=false \ scroll_texts=1 \ label.max_chars=50 \ label.scroll_duration=500 \ background.color=$PRIMARY_COLOUR \ icon.color=$BACKGROUND_COLOUR \ label.color=$BACKGROUND_COLOUR \ - icon.drawing=false + drawing=false # # Adding Right Items