Comments (2)
If you start sketchybar with the flag: sketchybar -c <path_to_sketchybarrc>
you can supply any sketchybarrc file in any folder and then the CONFIG_DIR variable will be the parent directory of that file. This way you can change the CONFIG_DIR
directory to any directory you like.
Does this help you with your problem? In any case, you can pass any environment variable to any script executed by sketchybar simply by setting it in the script
variable prior to invoking the actual script, e.g.:
sketchybar --set <name> script='SOME_VAR=something /path/to/some/script.sh'
This way you could also overwrite the CONFIG_DIR variable passed to the scripts on update, since sketchybar sets the variable prior to the script being executed, such that setting up the variable in the script takes precedence.
from sketchybar.
Well sadly this does not solve my problem since i have my own sketchybarrc in the .config/sketchybar
folder, because i do not wanna use all of your modules.
Also i cannot set the variable in the sketchybar command since therefore i use the items scripts from your repository so i am not able to overwrite this ...
https://github.com/breuerfelix/dotfiles/blob/main/darwin/sketchybar.nix here is my setup (if you know nix a little bit). I managed to find a workaround for it and copy your items, colors and icon_map also to my .config/sketchybar
.
But i also thought about the CONFIG_DIR as a global variable a little bit longer and i guess my proposal is not the optimal solution either. It think of your plugins like "packages" that i can consume and customize via variables (like config dir). So if someone else also has plugins, i just want to add them to my inputs and use them. This would not be possible with one config_dir variable which is the same for ALL sketchybar items added. In a dream world, i would need to have this variable to be modified for each item added and i guess that is more work for a niche use case ...
Thanks for mentioning these ways of customizing the varible, i didn't know that, maybe i come up with another solution :)
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.