Switching between workstations will also bring up the Rofi menu unintentionally if you have the $mod key also binded to bring up the Rofi menu. I tried various utilities to be able to create a custom keybinding that nothing worked.
I ended up writing my own simple script in Python with the help of the "pynput" module to create my own custom keybind.
- GIT
- Python
- Rofi
- i3
git clone https://github.com/alexeightsix/fix-i3-mod-rofi-bind.git
sudo pip install -r fix-i3-mod-rofi-bind.git/requirements.txt
Currently all the configuration values are hard-coded in the script. To change the command that runs and the user it runs as
you will need to open up run.py
and edit the variables accordingly.
python3 fix-i3-mod-rofi-bind.git/run.py
Add the following line to have the script startup once i3 starts
exec --no-startup-id python3 fix-i3-rofi-bind/run.py