nick-shmyrev / improved-osk-gnome-ext

Improved On Screen Keyboard for Gnome Shell
https://extensions.gnome.org/extension/4413/improved-osk/
94 stars 30 forks source link

Question: Should there be a 'Super-'Key? #43

Closed AxelMKlein closed 1 year ago

AxelMKlein commented 1 year ago

Hi *,

First, thank you so much for creating and maintaining this Gnome extension. Great stuff!

Now, at my instance, I don't see a 'Super'-Key.

Is this intended? In case yes, are there reasons for this and can it be brought in? Or do I do something wrong?

Thank you and best regards Axel

nick-shmyrev commented 1 year ago

Yes, that was somewhat intended. I never used it, so when I was rewriting the extension for Gnome 43 I just didn't bring it back. What's your use case for it? I don't mind adding it back in if enough people need it.

Also, you can add it yourself if you want. Start by cloning this repo. All of the OSK layouts are located in /src/data/osk-layouts dir. Layouts are divided into levels (lowercase chars, uppercase chars, numbers, other symbols), and each level consists of multiple lines. You'd probably want to add the SUPER key to the last line of both lowercase and uppercase char levels to keep the look of your language layout consistent. If so, don't forget to decrease the spacebar key width to compensate for an extra key. This is the code for SUPER key:

{
  "action": "modifier",
  "keyval": "0xffeb",
  "label": "Super"
},

If you want to use it in key combinations, keep the "action": "modifier" part, otherwise remove it.

Once you've modified your preferred layout, run the package-extension.sh from the root of the project, then continue with the manual installation process (see README).

AxelMKlein commented 1 year ago

Great! Thank you so much for this detailed answer.

I use the SUPER-Key quite a lot. I have put many shortcuts to this key, also in combination with e.g. SHIFT, to be more flexible. There are also many "official" shortcuts around the SUPER-Key, like SUPER-B for dimming the screen, SUPER-A for going to the application overview and I am sure there are more.

So if you decide to bring it in, that would be great, otherwise I will follow your "manual¨. Although this way I probably will have to do it again for every update. ;-)

Anyway, I get along with either way thanks to your explanation. And I am very thankful for your work on this extension. It is very valuable for me. Good stuff. :-)