Use 1920x1080 as default resolution (because it's most popular according to Ubuntu statistics)

This commit is contained in:
Mikhail Klementev 2018-07-12 07:14:48 +00:00
parent c37f2fa30b
commit e33570dc10
3 changed files with 5 additions and 6 deletions

View File

@ -34,9 +34,9 @@ You need to **relogin** if you install virt-manager (libvirt) first time.
## Generate resolution ## Generate resolution
By default uses 3840x2160. If you need to regenerate `appvm/nix/monitor.nix`: By default uses 1920x1080. If you need to regenerate `appvm/nix/monitor.nix`:
$ $GOPATH/github.com/jollheef/appvm/generate-resolution.sh 1920 1080 > $GOPATH/github.com/jollheef/appvm/nix/monitor.nix $ $GOPATH/src/github.com/jollheef/appvm/generate-resolution.sh 3840 2160 > $GOPATH/src/github.com/jollheef/appvm/nix/monitor.nix
Autodetection is a bash-spaghetti, so you need to check results. BTW it's just a X.org monitor section. Autodetection is a bash-spaghetti, so you need to check results. BTW it's just a X.org monitor section.

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
if [[ "$1" == "" || "$2" == "" ]]; then if [[ "$1" == "" || "$2" == "" ]]; then
echo -e "Usage:\t$0 X Y" echo -e "Usage:\t$0 X Y"

View File

@ -1,7 +1,6 @@
{ {
services.xserver.monitorSection = '' services.xserver.monitorSection = ''
Modeline "3840x2160_60.00" 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Option "PreferredMode" "3840x2160_60.00" Option "PreferredMode" "1920x1080_60.00"
DisplaySize 610 350
''; '';
} }