-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Rewrite the preferences to a more modern look, and add options #180
Conversation
…d some unknown bugs
This commit change every javascript style to: - add trailing semicolon everywhere it is needed - limit column width to 80 characters - simplify some code
@CorvetteCole you may want to check here, a lot have changed, including but not limited to:
These are some very big changes, including to the PR you submitted, so tell me what you think about all of this! For the moment, the main part of this PR is not done (you can check preferences... it's pretty empty :p); but all these changes will eventually permit this. You can test this, it works pretty well (apart from some bugs, like applications blur not being correctly applied after extension restart due to how I connected everything together; I will need to change some more things in order to prevent that). Edit: if you want to test changing preferences without the GUI, you can use gsettings with: make build
gsettings --schemadir build/schemas set org.gnome.shell.extensions.blur-my-shell property value I post this here because it took me some time to get it right, changing gsettings without the associated schemas is unbelievably hard to do... |
that's great! I'll definitely take a look. I previously took the sigma from the applications and the brightness from the extension settings so this works for sure. I'd love to help with the settings rewrite too! Glad to be working with you on this |
Components are enabled when the shell is entirely loaded Can now update applications blur dynamically
Apps blur should now work pretty well, the blur now updates when dconf is changed, etc... the UI preferences are probably the only big missing chunk now. Apps are still not blurred on overview etc, but I guess this will wait some time (this PR will probably not include this), and I may add a way to add transparency to blurred windows if the user wants to (or if xprop wants). BTW, no need to change glasstron, this should normally be fully backward-compatible with blur-provider. |
How would I go about testing the application-blur with this new PR? What else do I need to do other than setting |
Well, I guess after installing from this branch, these two things should be enough! You can find your app name with xprop (it's the WM class name iirc), and simply put that with gsettings. If that works from the extensions dir then that's enough, although I don't remember if I included everything needed in it (but else, just |
Thanks! It does work from the extension folder, my only issue was I didn't have the correct app name, and yes the Edit: On a first search on this topic I found this gnome-specific API to query the currently active windows, maybe this could be used to implement this on wayland? |
In what way doesn't it work in wayland? To get the window name with xprop? Once the settings is updated, there will be an option to directly select the window from there -- so no need to use xprop or anything :) |
(and to get the WM name from gjs, I already did that, so the only thing missing is a way to select a window from the prefs, similarly to the window selector for the new screenshot tool) |
|
hey @aunetx is there anything here in particular you'd like me to have a go at? I'm going to have quite a bit of free time for the next week or so, looking for a project! |
I can always in general just work on polishing this PR as well |
Hello @CorvetteCole, sorry for the delay, as you may see I am quite busy but I try to find some time to continue this PR! For the moment, the main thing to do is implementing the preferences UI, if you want you can spend some time doing this -- although this is pretty hard for the moment, as I have not finalized how I would like the UX to be (I still wonder about how I should place some buttons). Except this (which I will work on anyway, and I begin to understand libadwaita so I should do something ok), you may want to try working on :
|
thanks for the to-do list. I'll take a look this evening. Might take a look at #171 because I have multiple monitors and can easily test it. If you're okay with me doing some UX design I've got a bit of a knack for that so I might give that a go as well! We'll get this done |
- add dash-to-dock background override option - add overview components stylize option (to make dash, search, ... semi-transparent) - remove `dash` components, as its only effect is managed by components stylizing now
@CorvetteCole if you have the time, could you test this PR and see if everything works? It is now fully ready :) |
I still have issues with blur not sticking on wayland as i mentioned above. Demonstration (Tried using the new preferences on gnome 42 too but have reverted to 41 since): blur-not-sticking.mp4Basically it seems that the blur only gets applied to the windows open when the whitelist is first set, and that it doesn't properly check new windows. |
This is a big rewrite of the extension, nearly every component is changed.
This will fix #54, and will permit to complete #39 to select which window is blurred from the preferences :)