Skip to content

Instantly share code, notes, and snippets.

@ponimas
Created November 26, 2018 09:18
Show Gist options
  • Select an option

  • Save ponimas/89c3d6b3255f63d48c21889fb85a9243 to your computer and use it in GitHub Desktop.

Select an option

Save ponimas/89c3d6b3255f63d48c21889fb85a9243 to your computer and use it in GitHub Desktop.
[Unit]
Description=xkeysnail
[Service]
Environment="DISPLAY=:0" "PYTHONPATH=/home/ponimas/.local/lib/python3.6/site-packages/"
ExecStartPre=/usr/bin/sudo -u ponimas /usr/bin/xhost +SI:localuser:root
Type=simple
ExecStart=/home/ponimas/.local/bin/xkeysnail --watch /home/ponimas/.config/xkeysnail.py
ExecStop=/bin/kill -TERM $MAINPID
Restart=always
RestartSec=1
[Install]
WantedBy=graphical.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment