Allow to change resolution more than 6 times in 10 seconds (default)

This commit is contained in:
Mikhail Klementev 2019-12-29 17:24:14 +00:00
parent e5ccd6d913
commit 1251a21aba
No known key found for this signature in database
GPG Key ID: BE44DA8C062D87DC

View File

@ -70,6 +70,9 @@ startup = do
}; };
systemd.user.services."xrandr" = { 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 }')"; 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 }')";
}; };