A dead simple linux pipewire soundboard script that works on wayland.
This is only a POC for you to hack on if you so wish. No config files, to configure you must edit the code.
- vlc
pip install keyboard
pip install python-vlcWith nix you can use the nix-shell
With nix-direnv you can simply cd into the dir
# When using nix-shell / direnv you need to enter sudo beforehand
sudo python listener.py
# can be rerun/started without restarting listener.py
python main.pyThis should do about the same thing as listener.py, (haven't tested this)
sudo rm /tmp/keyevents.sock
sudo python -m keyboard | socat -u UNIX-LISTEN:/tmp/keyevents.sock,fork &
sudo chown upidapi:upidapi /tmp/keyevents.sock