mitchellh / nixos-config

My NixOS configurations.

Home Page:https://twitter.com/mitchellh/status/1346136404682625024

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better resolution management

SamirHafez opened this issue · comments

sessionCommands = ''
${pkgs.xlibs.xset}/bin/xset r rate 200 40
'' + (if currentSystem == "aarch64-linux" then ''
${pkgs.xorg.xrandr}/bin/xrandr -s '2880x1800'
'' else "");
};

I think services.xserver.resolutions = [{ x = 2880; y = 1800; }] would be a simpler way to achieve this, instead of using xrandr directly

Perhaps, I'm happy with how it is for now... and eventually VMware should support automatic resolution setting and we can just delete all this.