This program displays overlay images while a certain buttons are being held (shift, alt, etc).
It uses evdev, PIL, and PySimpleGUI. My own version of PySimpleGUI is included but the official version should work as well.
You must install PIL(pillow) and EVDEV for all users so that you can run the script with sudo.
sudo pip install pillow
sudo pip install evdev
sudo ./layoverlay.py
-or-
python layoverlay.py (a password dialog will open)
Alternatively, you may add your user account to the input group (or distribution equivalent)
Once you start the program you must setup your key to image bindings.
- Select the input device(keyboard) from the device dropdown
- Press the layer/ctrl/alt key that you want to bind
- Click the Add button
- Click Browse and select an image
- Press Add to return to the main config window
- Add any additional bindings you need
- Click the Start button
A window should flash onto the screen after a second or two. It will reappear when you hold the bound button long enough. The delay may be changed in the main config window.
Press a button to make the overlay popup, right click on the image, and then select Exit.