mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-22 20:23:01 +00:00
Use 1920x1080 as default resolution (because it's most popular according to Ubuntu statistics)
This commit is contained in:
parent
c37f2fa30b
commit
e33570dc10
@ -34,9 +34,9 @@ You need to **relogin** if you install virt-manager (libvirt) first time.
|
||||
|
||||
## 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.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$1" == "" || "$2" == "" ]]; then
|
||||
echo -e "Usage:\t$0 X Y"
|
||||
|
@ -1,7 +1,6 @@
|
||||
{
|
||||
services.xserver.monitorSection = ''
|
||||
Modeline "3840x2160_60.00" 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync
|
||||
Option "PreferredMode" "3840x2160_60.00"
|
||||
DisplaySize 610 350
|
||||
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
|
||||
Option "PreferredMode" "1920x1080_60.00"
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user