From 1251a21abadc15b7187d485317434c9befd0f6b2 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 29 Dec 2019 17:24:14 +0000 Subject: [PATCH] Allow to change resolution more than 6 times in 10 seconds (default) --- nix/base.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/base.nix b/nix/base.nix index 4bc514d..f4ec425 100644 --- a/nix/base.nix +++ b/nix/base.nix @@ -70,6 +70,9 @@ startup = do }; systemd.user.services."xrandr" = { + serviceConfig = { + StartLimitBurst = 100; + }; 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 }')"; };