1
0
Fork 0

Temporary solution for automatic resolution updates

Resolves #2
master
dump_stack() 2019-12-29 14:32:28 +00:00
parent 870c9d6da8
commit 1270b2e209
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 15 additions and 0 deletions

View File

@ -69,4 +69,19 @@ startup = do
};
wantedBy = [ "sysinit.target" ];
};
systemd.user.services."xrandr" = {
script = "${pkgs.xorg.xrandr}/bin/xrandr --output Virtual-1 --mode $(${pkgs.xorg.xrandr}/bin/xrandr | grep ' ' | head -n 2 | tail -n 1 | ${pkgs.gawk}/bin/awk '{ print $1 }')";
};
systemd.user.timers."xrandr" = {
description = "Auto update resolution crutch";
timerConfig = {
OnBootSec = "1s";
OnUnitInactiveSec = "1s";
Unit = "xrandr.service";
AccuracySec = "1us";
};
wantedBy = ["timers.target"];
};
}