1
0
Fork 0

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

master
dump_stack() 2019-12-29 17:24:14 +00:00
parent e5ccd6d913
commit 1251a21aba
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 3 additions and 0 deletions

View File

@ -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 }')";
};