Is there a way to turn off the SUPER key during gaming sessions or fullscreen apps in general?
Ubuntu – Turn off SUPER key during fullscreen apps
fullscreenshortcut-keysunity
fullscreenshortcut-keysunity
Is there a way to turn off the SUPER key during gaming sessions or fullscreen apps in general?
Best Answer
Introduction
The following script disables Super key if any X11 window is in fullscreen mode. It is meant to be added as a startup application , but also can run in a stand-alone mode.
Usage
To run the script manually it is sufficient to do :
In order to make the scrip start automatically upon login, consult How do I start applications automatically on login?
Obtaining the script source code
One could copy the script source from this answer, or obtain it via cloning my GitHub repository.
Instructions for those who have
git
:cd /opt
sudo git clone https://github.com/SergKolo/sergrep.git
chmod -R +x sergrep
The script will be located in
/opt/sergrep/disable_super_key.py
Script source code
Debugging
In case debugging is necessary , change line 32 from
debug = False
todebug = True
and run the script from command line