Giter VIP home page Giter VIP logo

Comments (4)

rwijtvliet avatar rwijtvliet commented on June 10, 2024 1

...and will you look at that <3

image image

from sketchybar.

rwijtvliet avatar rwijtvliet commented on June 10, 2024

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.

FelixKratz avatar FelixKratz commented on June 10, 2024

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
Screenshot 2023-11-10 at 00 05 16

If instead you add this before adding any other items, you will end up with this:
Screenshot 2023-11-10 at 00 06 17

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.

rwijtvliet avatar rwijtvliet commented on June 10, 2024

That's really clever! Thanks once more for such a fast answer, it's really appreciated!

from sketchybar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.