FelixKratz / dotfiles

My personal macOS configuration
GNU General Public License v3.0
929 stars 92 forks source link

No battery icon and wifi icon not reflecting the wifi. #25

Closed FormalSnake closed 1 year ago

FormalSnake commented 1 year ago

Screenshot 2023-08-30 at 16 33 44

Am I missing something?

I also cannot click the desktop thingies and the notification tray says it has something but it is empty

FormalSnake commented 1 year ago

unrelated question, but how do I make it have background blur and float?

FelixKratz commented 1 year ago

Battery only shows when below 60%, the desktop thingies use yabai -m space --focus .. such that it will only work if you have SIP disabled.

I have no clue why the wifi is not showing, possibly the event is not properly fired. I have only ever tested the wifi_change event with my devices. I am listening for changes in the ".*/Network/Global/IPv4" domain, so it should work.

For github notifications you need brew install gh and then authenticate via gh auth login

FormalSnake commented 1 year ago

It does show my IP correctly

FormalSnake commented 1 year ago

And my github notifications are fixed now!

FelixKratz commented 1 year ago

It does show my IP correctly

Then only the SSID (in $INFO) is empty: https://github.com/FelixKratz/dotfiles/blob/f3e9c4e604a1132c68787f130843d0aa750ee54e/.config/sketchybar/plugins/wifi.sh#L6

FormalSnake commented 1 year ago

How do I fix that?

FelixKratz commented 1 year ago

How do I fix that?

Just above the ICON=... line I have referenced above put:

INFO="$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I  | awk -F' SSID: '  '/ SSID: / {print $2}')"

If this does not fix it I am not sure

FormalSnake commented 1 year ago

Yes, my wifi thing works now!

unrelated question, but how do I make it have background blur and float? Like this: image

FelixKratz commented 1 year ago

Try running this command in your commandline while the bar is running:

sketchybar --bar color.alpha=0.5 corner_radius=11 blur_radius=20 y_offset=10 margin=10

You can play with the values until you like it and then copy this command to the bottom of your sketchybarrc to make it persist a restart.

Docs: https://felixkratz.github.io/SketchyBar/config/bar

FormalSnake commented 1 year ago

Thank you very much! It looks amazing!