[nix] Run the thinkpad-unlocker upon unlocking the screen

This commit is contained in:
Sebastian Schulze 2022-07-05 08:37:30 +02:00
parent 202fc46a21
commit 65a65c752c
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 1 additions and 0 deletions

View File

@ -387,6 +387,7 @@ in
Service = {
ExecStart = '' ${pkgs.swayidle}/bin/swayidle -w -d \
before-sleep '${config.home.homeDirectory}/bin/blur-lock' \
unlock '${config.home.homeDirectory}/bin/thinkpad-dock' \
timeout 300 '${config.home.homeDirectory}/bin/blur-lock' \
timeout 600 '${pkgs.sway}/bin/swaymsg "output * dpms off"' \
resume '${pkgs.sway}/bin/swaymsg "output * dpms on"'