Skip to content
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

Disable the Super-Key while Ingame #46

Open
Preisschild opened this issue Nov 8, 2021 · 3 comments
Open

Disable the Super-Key while Ingame #46

Preisschild opened this issue Nov 8, 2021 · 3 comments

Comments

@Preisschild
Copy link

Some games (such as Arma) use the Super/Windows-Key for some actions, as it is disabled in Windows in those games.

On GNOME while playing such games the Activity-Menu opens.

I think a good feature would be to disable the hotkey while gamemode is running.

This feature could also be behind a switch, as it may be unwanted for some.

@gicmo
Copy link
Owner

gicmo commented Nov 12, 2021

I wonder if we should / can do this in the extension or rather in game mode directly.

@Preisschild
Copy link
Author

Yes, have thought about this myself too.

But it'll probably require some DE-specific things, so I asked here.

@ferdnyc
Copy link

ferdnyc commented Dec 10, 2021

@gicmo @Preisschild I doubt this could be done from an extension, the Super binding under Gnome Shell is baked pretty deep into the system.

(There are configurable shortcuts for both Applications view and Overview, but they default to Super+A and Super+S, respectively. The binding of a lone Super press, when it's not used as a modifier, is special-case logic in the input handler.)

One approach that might work is to go the route that remote-session tools use. Both Remmina and vncviewer have modes (optionally activated by Fullscreen, in vncviewer; activated by a toolbar icon, in Remmina) where they deliver all input events to the remote session, even special keypresses like Super and Ctrl+Alt+Fn.

TBH I don't know how they do it, but I assume it involves imposing their own input handler in front of the Shell's default one. Certainly, the code is available, if someone wanted to find out how they do it. And presumably, a similar feature could be added to Game Mode, in order to bypass the normal global keybindings.

(I still don't think the extension could handle it on its own, though. There would need to be support in Game Mode.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants