Waybind is a lightweight global keyboard shortcut daemon written in Python.
It lets you define custom keybindings that launch commands. Works on both X11 and Wayland, depending on permissions and compositor behavior.
Note. Tested on Wayland – LabWc
✅ Features
– Global keybinding support using low-level input events – Supports combinations like `CTRL+ALT+T`, `SUPER+W`, etc. – Lightweight and daemonized – runs quietly in the background – No `systemd` or desktop environment integration forced/required (but recommended). – Minimal dependencies (Python only)
Here is a mandatory screenshot. Remember to read the release notes in detail. There might be small manual adjustments you need to make. Also, at the end of this post there is a part that you should run as a script, to fix some issues that came apparent after this release. These issues will be addressed in future builds.
F6 key pressed: Tint2 and clock with a day appearing.
Important0: Spin-FM/sfm no trash found: mkdir -p .local/share/Trash/files
Keyboard is not a fixed entity and thus its numbering will move upon fresh install. This will do harm to osd. Here is a fix for it.
sudo apt install evtest #Install evtest
sudo evtest #Find your keyboard
sudo nano /usr/share/osd.py #Open osd.py
KEYBOARD_DEVICE = “/dev/input/event4” #Modify the number to match the device number of keyboard.
Exit Openbox and login again.
Important2: Fix for sources and troublesome firmware. Save the script below, for example, script.sh. Then do sudo bash script.sh and run it. It will fix the sources list and remove a troublesome firmware. Notice that Nvidia part is only needed when Lightdm or other X resources are stopped and you are actually installing Nvidia proprietary from nvidia.com
#!/bin/bash
# Script to remove raspi-firmware, purge Debian Nvidia drivers, and set up sources for Nvidia and non-free firmware
# 2. Remove Debian Nvidia drivers if present - needed only when using proprietary drivers from nvidia.com #echo "Removing Debian's Nvidia drivers..." #sudo apt-get remove --purge -y nvidia*
# 3. Overwrite the apt sources list with the new repositories echo "Overwriting the apt sources list..."
cat <<EOL | sudo tee /etc/apt/sources.list deb http://deb.debian.org/debian bookworm main non-free-firmware contrib non-free deb-src http://deb.debian.org/debian bookworm main non-free-firmware contrib non-free
deb http://deb.debian.org/debian bookworm-updates main non-free-firmware contrib non-free deb-src http://deb.debian.org/debian bookworm-updates main non-free-firmware contrib non-free
deb http://security.debian.org/debian-security/ bookworm-security main non-free-firmware contrib non-free deb-src http://security.debian.org/debian-security/ bookworm-security main non-free-firmware contrib non-free
deb http://deb.debian.org/debian bookworm-backports main non-free-firmware contrib non-free deb-src http://deb.debian.org/debian bookworm-backports main non-free-firmware contrib non-free EOL
# 4. Update the package list echo "Updating package list..." sudo apt-get update