unknown domain error #158
-
|
I'm trying out the
#!/usr/bin/env sh
sketchybar --add item window.yabai_stack left \
--set window.yabai_stack script="$PLUGIN_DIR/stack.sh" \
icon.font="$FONT:Bold:16.0" \
label="" \
label.drawing=off \
background.padding_left=40 \
updates=on \
--subscribe window.yabai_stack front_app_switched window_focus float_change \
\
--add item window.yabai_status left \
--set window.yabai_status script="$PLUGIN_DIR/yabai_window.sh" \
icon.font="$FONT:Bold:16.0" \
label.drawing=off \
updates=on \
--subscribe window.yabai_status front_app_switched window_focus float_change mouse.clicked \
\
--clone window.label label_template \
--set window.label label=sys \
position=left \
drawing=on \
script="$PLUGIN_DIR/window_title.sh" \
--subscribe window.label front_app_switched \
\
--add bracket window \
window.yabai_stack \
window.yabai_status \
window.label \
\
--set window background.drawing=on
#!/usr/bin/env bash
# Exit if Not in Stack
WINDOW=$(yabai -m query --windows --window)
CURRENT=$(echo $WINDOW | jq '.["stack-index"]')
if [[ $CURRENT -eq 0 ]]; then
sketchybar --set $NAME drawing=off
exit 0
fi
# Use Numbers in place of Dots if the Stack is greater than 10
# Use a larger font for the unicode dots
LAST=$(yabai -m query --windows --window stack.last | jq '.["stack-index"]')
if [[ $LAST -gt 10 ]]; then
sketchybar --set $NAME drawing=on \
label=$(printf "[%s/%s]" "$CURRENT" "$LAST")
exit 0
fi
# Create Stack Indicator
declare -a dots=()
for i in $(seq 0 $(expr $LAST - 1))
do
if [ $( expr $CURRENT - 1) -eq $i ]; then
dots+="●"
else
dots+="○"
fi
done
# Display Indicator
sketchybar $NAME drawing=on \
label=$(printf "%s" ${dots[@]}) |
Beta Was this translation helpful? Give feedback.
Answered by
FelixKratz
Jan 17, 2022
Replies: 1 comment
-
|
The domain |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
basbebe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The domain
--setis missing the last line ofstack.sh.