glassy-gnome
glassy-gnome copied to clipboard
Change transparency by Alt+scroll
Hi,
Compiz have a plugin "Opacity, Brightness and Saturation" with the similar functionality as your extension but it uses keybinding scheme that I find as a very convinient: Alt + scroll-up to make window less transparent and Alt + scroll-down to make it more transparent https://askubuntu.com/a/133295
Would it be possible to add such a keybindings to your extension?
Interesting key binding. I think it is possible and will take a look. Thanks for the info :)
Hi @seriyps ,
After some experiment, I think you can do it with the following commands (in a terminal).
gsettings --schemadir ~/.local/share/gnome-shell/extensions/glassygnome@emiapwil/schemas \
set org.gnome.shell.extensions.glassy-gnome inc-opacity-key "['<Alt>UP']"
gsettings --schemadir ~/.local/share/gnome-shell/extensions/glassygnome@emiapwil/schemas \
set org.gnome.shell.extensions.glassy-gnome dec-opacity-key "['<Alt>DOWN']"
Please let me know if that works.
@emiapwil hi, and thanks
I tried your suggested keybinding, but it uses UP and DOWN keyboard arrows, but I was talking about mouse whell (or touchpad) SCROLL-UP and SCROLL-DOWN. So yep, you hold Alt and scroll mouse wheel and this changes current window opacity.
My mistake. Will check that later.
One possible solution is to map the scroll up/down to a given keycode and use the keycode in the settings.
But I have not figured out how to do the mapping yet.
I am also keen to see this implemented (I remember doing this with <Super>
+ scroll up).
I don't think mapping should be necessary but I'm not sure how else it could be implemented.
@jcuenod Do you still know how super
+ scroll-up
works? Can I take a look?
Well it was in the old compiz days. Looking at xev
I'm seeing buttonpress/release events with the button value 4/5 for scrolling up and down. I don't know how to track these things in GJS though. The little I've done with GJS I found it to be total nightmare.