Coder Social home page Coder Social logo

Comments (8)

emiapwil avatar emiapwil commented on September 15, 2024

Interesting key binding. I think it is possible and will take a look. Thanks for the info :)

from glassy-gnome.

emiapwil avatar emiapwil commented on September 15, 2024

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.

from glassy-gnome.

seriyps avatar seriyps commented on September 15, 2024

@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.

from glassy-gnome.

emiapwil avatar emiapwil commented on September 15, 2024

My mistake. Will check that later.

from glassy-gnome.

emiapwil avatar emiapwil commented on September 15, 2024

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.

How GNOME identifies keycode

from glassy-gnome.

jcuenod avatar jcuenod commented on September 15, 2024

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.

from glassy-gnome.

emiapwil avatar emiapwil commented on September 15, 2024

@jcuenod Do you still know how super + scroll-up works? Can I take a look?

from glassy-gnome.

jcuenod avatar jcuenod commented on September 15, 2024

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.

from glassy-gnome.

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.