FelixKratz / SketchyBar

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

whether the labels for the space component are automatically assigned #471

Closed marsjane closed 6 months ago

marsjane commented 6 months ago

hi, I am looking into some shared dotfiles, this one (thanks the author!) https://github.com/FelixKratz/dotfiles/blob/e6288b3f4220ca1ac64a68e60fced2d4c3e3e20b/.config/sketchybar/items/spaces.sh

I couldn't locate where the label for the space component (representing all app titles in that space) is defined. I am somewhat confused as I reviewed the documentation, which categorizes "space" as a "Special Component." However, the documentation does not specify whether the labels for the space component are automatically assigned. Could you please clarify how the label for the space component is configured?

Second question is about the "yabai" component, what is it used for? It seems not shown on my side, can you also help explain?

Thanks!

FelixKratz commented 6 months ago

No label or icon is automatically assigned, it is all through scripts,e.g. here: https://github.com/FelixKratz/dotfiles/blob/master/.config/sketchybar/plugins/space_windows.sh

The yabai item shows the state of the window if it is floating,stacked or in a zoomed state.

marsjane commented 6 months ago

thanks!