Comments (4)
...and will you look at that <3
from sketchybar.
Why do always start reading the docs after writing a question?
I could probably get something to work using this. However, I think it's not possible without duplicating my code base and changing every mention of sketchybar
to secondary_bar
(or something), which is less than ideal for maintenance.
from sketchybar.
There are a number of ways you could achieve what you would like to have.
I think the simplest would be to use the bracket
special item:
With it you can connect two arbitrary items with a common background, i.e.
adding this after all other items have been added will fill the gap between them
sketchybar --add item left_anchor left \
--set left_anchor width=0 display=1 \
--add item right_anchor right \
--set right_anchor width=0 display=1 \
--add bracket gap_fill left_anchor right_anchor \
--set gap_fill background.color=0xff00ff00
If instead you add this before adding any other items, you will end up with this:
As you can see, these items are only displayed on display 1, so you can do the same for any other displays you would like to have this colored bar appear on and change the color of the respective bracket accordingly.
from sketchybar.
That's really clever! Thanks once more for such a fast answer, it's really appreciated!
from sketchybar.
Related Issues (20)
- add service managment into sketchybar like yabai HOT 1
- Mac personalizations
- [Featuee Request] Adding an item with before/after specific items
- Background aware font setup HOT 4
- front_app_switched event firing multiple times HOT 8
- [help]get some errors in the time display HOT 1
- Bar flickering issue on space change when "sticky=on" and "Reduce Moution" is on HOT 1
- bracket border not showing HOT 3
- bar hidden = off disables important event HOT 2
- Cannot run SketchyBar if configuration is execeutable symbolic link
- yabai autoraise/autofocus spam clicks sketchybar. HOT 1
- How to add an item to a bracket that already exists? HOT 1
- Padding for brackets HOT 1
- updates frequency instant? HOT 1
- [Bug] sketchybar alias items disappears when macos menubar is set to transparent with yabai. HOT 2
- Missing icons macOS: 14.5-arm64
- Make Sketchybar gpu accelerated. HOT 1
- OSX switching workspaces flashes. HOT 4
- sketchybar --clone man pages change HOT 1
- [Feature Request] Add event on space rearrange HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sketchybar.