forked from nico/dots
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.
This commit is contained in:
parent
99c487f0be
commit
7bf0f2e8ea
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue