-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize and reorder widgets in Control Center #150
Conversation
I need to try and check. Actually I use arguments, leaving the swaync config file to users' creativity, so hope it to be all good. Will let you know. |
Sorry, I was wrong. I use a single config.json file for all my presets, and a separate css file for each of them. I modify I need to update the config file content. |
Alright, I'll just add missing config keys from the default config file, if any. defaults = load_json("/etc/xdg/swaync/config.json")
for key in defaults:
if key not in swaync_settings:
swaync_settings[key] = defaults[key] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added 4 lines to nwg-shell-config, that will bring swaync back to life after your update. This won't be 100% hassle-free, however: users will have to open nwg-shell-config and press the 'Apply' button.
Oh. I'll add a few default widgets and fix height not being respected |
Are you referring to the messed up height and missing widgets? |
I meant missing widgets, due to missing config keys. If you add default widgets - very well. One way or another, I think I'll leave the default keys check. Your config content may change in the future. |
Oh, the large height was just my config being invalid due to a trailing comma... I'll add default widgets :) |
Thank you. Honestly, the nwg-shell project is already so oversized, that it takes me quite a long time to get back to things I haven't touched recently. Sometimes I can't even remember which application I wrote in Python and which in Go. :) |
@nwg-piotr How would this affect your shell config?
Fixes: #22