Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bracket and vertical bar #617

Closed
capitanBOBO opened this issue Sep 22, 2024 · 1 comment
Closed

Bracket and vertical bar #617

capitanBOBO opened this issue Sep 22, 2024 · 1 comment

Comments

@capitanBOBO
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants