Giter Site home page Giter Site logo

Comments (2)

FelixKratz avatar FelixKratz commented on June 10, 2024

I had this in mind for some time now and this would be a good oportunity to refactor the bar_manager and bar code.
From the technical point of view this is all very simple, the hard part is to come up with a proper configuration syntax for this.
Obviously, the current configuration syntax should not be affected by this addition so it would need to be a command prefix.

Maybe something like:

sketchybar --bar <property>=<value> ... <property>=<value>

sets properties for the bar globally (as it is now), while

sketchybar --display <positive_integer list> --bar <property>=<value> ... <property>=<value>

would set the properties for the specified displays only.

Problem with this is that it looks as if it is a global display select and should therefore also work for items, e.g.

sketchybar --display <positive_integer list> --set name <property>=<value> ... <property>=<value>

should also only change the item properties on a specific display.

This would require significant modifications to the bar_item logic as well.

And when exposing a --display selector one could go even further and provide a --space selector as well, which should work for both the --bar and --set domains.

I will think about this some more but I like the idea so far. Any further ideas/considerations for this syntax addition?

from sketchybar.

rainzm avatar rainzm commented on June 10, 2024

This is a top-down, organized structure, which is a brilliant idea. I am eagerly looking forward to it.

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.