1 2 3 4 5 6 7 8 9 10 11 12
[Unit] Description=Xrandr Watcher [Service] Type=simple Environment=XRANDR_DEFAULT_HANDLER_SCRIPT=/usr/bin/xrandr-watcher-handler-example ExecStart=/usr/bin/xrandr-watcher %h/.xrandr-changed Restart=on-failure RestartSec=5s [Install] WantedBy=default.target