cmacrae / spacebar

A minimal status bar for macOS. Ideal for use with tiling window managers like yabai
MIT License
1.22k stars 52 forks source link

Some config values do not get applied, very inconsistently (Monterey) #108

Closed adamisafk closed 1 year ago

adamisafk commented 2 years ago

When starting or restarting spacebar, either on boot up or manually via brew services, more often than not many config lines aren't applied. Simple booleans and values like the title or height works 100% of the time, but other lines such as background_color or space_icon_strip are only applied 5% of the time (but never mixmatch. Either they all apply or none of them do). To fix I have to restart spacebar until it works every time I reboot.

I've tried all config locations, and tried using spacebar -c but am getting this:

$ spacebar -c ~/.config/spacebar/spacebarrc
spacebar: could not acquire lock-file! abort..

This is my .spacebarrc:

#!/usr/bin/env sh

spacebar -m config position             top
spacebar -m config height               34
spacebar -m config title                off
spacebar -m config spaces               on
spacebar -m config clock                on
spacebar -m config power                on
spacebar -m config padding_left         20
spacebar -m config padding_right        20
spacebar -m config spacing_left         25
spacebar -m config spacing_right        15
spacebar -m config text_font            "MesloLGS NF:Regular:13.0"
spacebar -m config icon_font            "MesloLGS NF:Regular:13.0"
spacebar -m config right_shell          on
spacebar -m config right_shell_command  "whoami"
spacebar -m config right_shell_icon     
spacebar -m config right_shell_icon_color 0xffebdbb2
spacebar -m config background_color     0xff000000
spacebar -m config foreground_color     0xffebdbb2
spacebar -m config space_icon_color     0xfffb4934
spacebar -m config power_icon_color     0xffcd950c
spacebar -m config battery_icon_color   0xffd75f5f
spacebar -m config dnd_icon_color       0xff83a598
spacebar -m config clock_icon_color     0xffebdbb2
spacebar -m config power_icon_strip      
spacebar -m config space_icon_strip     I II III IV V VI VII VIII IX X
spacebar -m config space_icon           
spacebar -m config clock_icon           
spacebar -m config dnd_icon             
spacebar -m config clock_format         "%d/%m|%R"

echo "spacebar configuration loaded.."

This is what it looks like when it's usually not applied (notice that the title = off config is applied): broken

What it's supposed to look like (using correct bg colour, space icons, and right shell + clock): working

Seems like there's a higher chance of it applying correctly if I restart my machine instead of restarting the service.