Automatically switch Piper profiles based on active window on Linux (like G Hub on Windows)
- Piper
- xdotool
- x11_watch_active_window.py
- xlib python library
Note: xdotool and x11_watch_active_window.py must be available on the $PATH
- Download the
Source codeof the latest relaese - Unzip it
- In your favorite text editor, fill out the
environmentfile - Open a terminal in the directory of the extracted zip
- Copy and paste the following code into the terminal
sudo mkdir /etc/piper-switcher.d
sudo mv environment /etc/piper-switcher.d
sudo mv piper-switcher.sh /usr/bin
sudo mv piper-swithcer.service /etc/systemd/system
sudo service piper-switcher enable
sudo service piper-switcher start