Support both Super keys simultaneously on org.gnome.mutter overlay-key

Bug #1880411 reported by Jora Sucharik
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
New
Unknown
gnome-tweaks (Ubuntu)
Triaged
Wishlist
Unassigned
mutter (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

The right super key doesn't show the overlay.

Ubuntu 20.04 LTS

Tags: focal
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:

  apport-collect 1880411

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

There is no "right super key". The key on the right side is for opening context menus.

Changed in gnome-shell (Ubuntu):
status: Incomplete → Invalid
tags: added: focal
Revision history for this message
Jora Sucharik (c3374610) wrote :

Here is it. I put a red circle on it so you can find it better.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the screenshot. That's just a bug in gnome-control-center giving it the wrong label.

The "Super R" key is actually called "Compose" by the kernel, and it is called "Menu" by gnome-shell. That key is not meant to open the overview.

affects: gnome-shell (Ubuntu) → gnome-control-center (Ubuntu)
summary: - right super key does not show the overlay
+ Settings > Language and Region keyboard preview mislabels the
+ compose/menu key as "Super R"
description: updated
Changed in gnome-control-center (Ubuntu):
importance: Undecided → Low
status: Invalid → New
Revision history for this message
Jora Sucharik (c3374610) wrote : Re: Settings > Language and Region keyboard preview mislabels the compose/menu key as "Super R"

It's looks like that this is a mutter thing. If I understand that correctly from a short gsettings dig, you can set only one key as overlay-key, not a combo, not several separate keys.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes the feature you want is a mutter/gnome-shell thing, but that's not a bug. The only bug here is in the gnome-control-center GUI.

Revision history for this message
Jora Sucharik (c3374610) wrote :

I disagree with you Daniel. So far I know, Gnome doesn't have a default compose key. Of course you can set it with gnome-tweaks, but for all keybinding this one is <SuperR>. May be you restore the original issue name and move it to mutter?

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: right super key does not show the overlay

Done. Though the original issue is invalid, not a bug.

If you disagree then please explain why.

summary: - Settings > Language and Region keyboard preview mislabels the
- compose/menu key as "Super R"
+ right super key does not show the overlay
description: updated
affects: gnome-control-center (Ubuntu) → mutter (Ubuntu)
Changed in mutter (Ubuntu):
status: New → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Can we assign this to gnome-tweaks, since that's what calls it "Right Super" ?

summary: - right super key does not show the overlay
+ Tweaks > Keyboard & Mouse > Overview Shortcut = Right Super does not
+ work
affects: mutter (Ubuntu) → gnome-tweaks (Ubuntu)
Changed in gnome-tweaks (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Tweaks > Keyboard & Mouse > Overview Shortcut = Right Super does not work

Looking at the source code of gnome-tweaks it is trying to set:

  gsettings set org.gnome.mutter overlay-key 'Super_R'

which is a mistake. Because the correct setting to get it working is:

  gsettings set org.gnome.mutter overlay-key 'menu'

So it's just a bug in gnome-tweaks.

Changed in gnome-tweaks (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please report the problem to gnome-tweaks here:

  https://gitlab.gnome.org/GNOME/gnome-tweaks/-/issues

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

The latest problem description on this bug report seems oversimplified to me. Let me add some more input:

On my physical keyboard I have the following keys to the right of the space key:

 AltGr
 Page Up
 Page Down
 Right Ctrl

With the English (US) layout active, the "Show Keyboard Layout" option says:

 Alt R
 Super R
 Menu
 Control R

So the g-c-c feature correctly identifies the first and the last of those keys, and randomly sets the label "Super R" respective "Menu" on two 'unexpected' keys.

If I define e.g. Right Ctrl as the Compose key, this is the g-c-c output:

 Alt R
 Super R
 Menu
 Compose

So it labels my compose key correctly, but still have those incorrect "Super R" and "Menu".

Revision history for this message
Jora Sucharik (c3374610) wrote :

Okay, there is no issue with gnome-tweaks. It does what it supposed to do. In Keyboard & Mouse -> Overview is a toggle button to select either Left Super or Right Super. What it does is being a wrapper around gsettings set org.gnome.mutter.overlay-key for 'Super_L' or 'Super_R' values. Both options work well. But you can have only one of them at the same time. So my problem is with mutter. Mutter doesn't accept multiple values for the overlay-key. It must be one single key, but you can set it to everything you want.

Naming issue. My hardware keyboard has a common German layout, the keys left from space bar are: Alt Gr, ⊞ aka windows key, ≣ menu key, Strg aka ctrl. The windows key is super. There are two of them on the keyboard: one left, one right. If I look for X events with 'xev -event keyboard' I see that that windows keys are named Super_L and Super_R. Gnome folks name them as Super_L and Super_R. I am d'accord with them.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Oh, sorry. I had to Google "German keyboard layout" to see that keyboards with two Super keys do exist. I have never seen that before.

If you just want support for multiple simultaneous keys on the same action then I will make this bug about that...

summary: - Tweaks > Keyboard & Mouse > Overview Shortcut = Right Super does not
- work
+ Support both Super keys simultaneously on org.gnome.mutter overlay-key
Changed in gnome-tweaks (Ubuntu):
importance: Low → Wishlist
Changed in mutter (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Jora Sucharik (c3374610) wrote :

Yes, thanks for adding this to mutter's gitlab issue tracker.

Revision history for this message
Jordi2019 (jordi2019) wrote :

It happens the same with the Spanish (International) layout.

This is a highly requested feature!

Changed in mutter:
status: Unknown → New
Revision history for this message
Ladar Levison (kingladar) wrote :

I didn't see anybody post this workaround yet, but on my systems, it's possible to get the desired functionality, if you make the config change using the command line. This bug is still relevant though, as its impossible to make the same change using any of the GUI tools.

Pick one of the following commands. Just pick whichever method tickles your inputs the most:

# Make the change with gsettings...
gsettings set org.gnome.shell.keybindings toggle-overview "['<Super>s','Super_R']"

# Or if you are using a more recent release, make the change using dconf write.
dconf write /org/gnome/shell/keybindings/toggle-overview "['<Super>s','Super_R']"

# Finally, if you prefer to use docnf load (good scripts making lots of changes):
dconf load -f /org/gnome/shell/ <<-EOF
[keybindings]
toggle-overview=['<Super>s', 'Super_R']
EOF

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.