You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One icon (item) using sketchybar-app-font per app (actually per window ;-))
I'm using dracula theme and like to have an accent color per space -> selected state of space as well as janky borders for active window
I want some kind of notification indicator, maybe change the icon (background) color or so -> that's the main reason for having one item per app vs. just using one item per space
Maybe I want to integrate the "front app" into its space (displaying the name next to the icon, may be some kind of highlight)
I'm using Aerospace for space management
Sketchybar is setup using sbarlua
All the following are my current assumptions and/or ideas an may not be correct, so feel free to correct me^^
Brackets can only "hold" items set on creation. So it's not possible to change those later on. Therefore my approach is to use some kind of item (app) pool for each space (e.g. 4). That means during initialisation I will create 4 items per space and then just set "drawing true/false" and update the props (e.g. icon) as necessary.
While I got this working "logically" fine, I noticed (especially on multi-monitor setup), that the performance quite dropped, compared to the initial approach (one item per space, and just having the label "hold" multiple apps/icons), which @FelixKratz currently uses in his dotfiles. The switch to e.g. another space is very instant, so I guess aerospace is fine. But Sketchybar updates are kinda laggy.
Maybe I should not kinda brute-force update everything on "focus change" of aerospace? I already tried to batch updates via the shell api, using just one call with all the "set" calls in it.
However, maybe someone can help me with the following questions:
How expensive are single "draw" calls vs. batched ones (I didn't really notice much or let say any difference at all)
Is it much faster to call objects directly, instead of looking them up by name strings? (sbar.set("space." .. spaceIndex .. ".app." .. appIndex ... vs. some kind of object structure spaces[spaceIndex].apps[appIndex]:set(...)
How bad is it to brute-force update everything instead of determining/diffing changes and just update whats needed
Should my approach be a problem at all, or am I missing something completely different and all my considerations are probably not the problem in the first place? 🙈
How do you guys set things up?
Any ideas, insights or help are highly appreciated :-)
Here is what my bar looks like now^^
Here's my current "spaces.lua" file (heavy WIP, dont judge too hard^^):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to have a spaces section as follows:
All the following are my current assumptions and/or ideas an may not be correct, so feel free to correct me^^
Brackets can only "hold" items set on creation. So it's not possible to change those later on. Therefore my approach is to use some kind of item (app) pool for each space (e.g. 4). That means during initialisation I will create 4 items per space and then just set "drawing true/false" and update the props (e.g. icon) as necessary.
While I got this working "logically" fine, I noticed (especially on multi-monitor setup), that the performance quite dropped, compared to the initial approach (one item per space, and just having the label "hold" multiple apps/icons), which @FelixKratz currently uses in his dotfiles. The switch to e.g. another space is very instant, so I guess aerospace is fine. But Sketchybar updates are kinda laggy.
Maybe I should not kinda brute-force update everything on "focus change" of aerospace? I already tried to batch updates via the shell api, using just one call with all the "set" calls in it.
However, maybe someone can help me with the following questions:
sbar.set("space." .. spaceIndex .. ".app." .. appIndex ...vs. some kind of object structurespaces[spaceIndex].apps[appIndex]:set(...)Any ideas, insights or help are highly appreciated :-)
Here is what my bar looks like now^^

Here's my current "spaces.lua" file (heavy WIP, dont judge too hard^^):
Beta Was this translation helpful? Give feedback.
All reactions