diff --git a/README.md b/README.md index 6fcacf8..92e85ab 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/generate-resolution.sh b/generate-resolution.sh index 88c4d1c..7c814be 100755 --- a/generate-resolution.sh +++ b/generate-resolution.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [[ "$1" == "" || "$2" == "" ]]; then echo -e "Usage:\t$0 X Y" diff --git a/nix/monitor.nix b/nix/monitor.nix index 8caebd1..6d18d00 100644 --- a/nix/monitor.nix +++ b/nix/monitor.nix @@ -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" ''; }