FelixKratz / SketchyBar

A highly customizable macOS status bar replacement
https://felixkratz.github.io/SketchyBar/
GNU General Public License v3.0
6.64k stars 97 forks source link

Bracket and vertical bar #617

Closed capitanBOBO closed 2 months ago

capitanBOBO commented 2 months ago

I understand that vertical bar can act kinda unpredictable Maybe i did something wrong but if I using vertical bar then brackets just didn't work. I checked for horizontal bar and for horizontal bar everything was ok and brackets working fine. For example, this is code I'm using for "space" items:

source $HOME/.config/sketchybar/colors.sh
SPACE_ICONS=($(yabai -m query --spaces | jq '.[]' | jq '.index'))

for i in "${SPACE_ICONS[@]}"
do
    sid=$i
    space=(
    associated_space=$sid           
    label=$sid                  
    icon.drawing=off            
    padding_left=5              
    script="$PLUGIN_DIR/space.sh"       
    click_script="skhd -k \"ctrl - $sid\""  
)

    sketchybar  --add       space       space.$sid  left            \
            --set       space.$sid  "${space[@]}"               \
        --subscribe space.$sid  space_change display_change send_window 

done

bracket_prop=(
    background.color=$RED
    background.heigh=20
)

sketchybar  --add   bracket spaces space.1 space.2 space.3  \
        --set       spaces "${bracket_prop[@]}"

Same code for horizontal bar working fine

FelixKratz commented 2 months ago

See #240. The vertical bar configuration is still in an undocumented state and will require some more work before getting an official documentation and support.