Scripts + Services I'm using to set my razer's DPI to the preferred 600 x 600 every time I switch off my work PC and onto my personal PC
- Shell 100%
| README.md | ||
| set-dpi-on-login-after-boot.service | ||
| set-dpi.sh | ||
| unlock-listener.desktop | ||
| unlock-listener.sh | ||
razer-set-dpi
Scripts + Services I'm using to set my razer's DPI to the preferred 600 x 600 every time I switch off my work PC and onto my personal PC
set-dpi.shis the main script; it just handles calls to the log and execution of therazer-clicommand.- The
.desktopis a systemd service that that should be handled by the session itself. This picks up on signals in DBUS that are specific to session unlock (ie you've locked the screen and are now unlocking it) and session resume-after-sleep (ie your machine went to sleep and is now waking) - The
.servicefile should run on sesssion initialization, so the very first login
I'm not super knowledgeable about systemd but this seems to have done the trick of correcting the session DPI from every known entry point.