Closed TobinPalmerAlt closed 1 year ago
This code doesn't output anything:
#!/bin/bash SOURCE=$(cat ~/Library/DoNotDisturb/DB/Assertions.json | jq '.[][]' | grep assertionDetailsModeIdentifier | tail -1 | cut -d'"' -f4) sketchybar --set $NAME label="$SOURCE"
But when ran in the terminal, this is the output.
This is the sketchybar code
sketchybar --add item focus right \ --set focus script="$PLUGIN_DIR/focus.sh" \ width=30 \ label.padding_left=-10 \ label.font="$FONT:Bold:12" \ update_freq=3 \
And when setting the label to a constant string it will show
This seems to work without any problems. Try running sketchybar from the commandline and see the error message output. Also check the item properties when sketchybar is running with sketchybar --query focus
sketchybar --query focus
This code doesn't output anything:
But when ran in the terminal, this is the output.
This is the sketchybar code
And when setting the label to a constant string it will show