laptop: run autorandr via acpid on lid events
Alan Pearce alan@alanpearce.eu
Wed, 28 Aug 2019 16:48:30 +0200
1 files changed, 7 insertions(+), 0 deletions(-)
jump to
M modules/hardware/laptop.nix → modules/hardware/laptop.nix
@@ -38,6 +38,13 @@ IdleAction=suspend IdleActionSec=600 ''; + services.acpid = { + enable = true; + lidEventCommands = '' + ${pkgs.autorandr}/bin/autorandr --batch --change + ''; + }; + services.physlock = { enable = true; # Already need to enter disk encryption password