Skip to content

Instantly share code, notes, and snippets.

@jsplink
Last active August 30, 2015 00:20
Show Gist options
  • Save jsplink/22e0821dfe35c558e80c to your computer and use it in GitHub Desktop.
Save jsplink/22e0821dfe35c558e80c to your computer and use it in GitHub Desktop.
xorg.conf
rm /home/{{user}}/.Xauthority
HOST={{hostname}};
key=`perl -e 'srand; printf int(rand(100000000000000000))'`
key=$key$key
xauth add ${HOST}/unix:0 . $key
session=${1:-xfce}
case $session in
awesome ) exec awesome;;
bspwm ) exec bspwm;;
catwm ) exec catwm;;
cinnamon ) exec cinnamon-session;;
dwm ) exec dwm;;
enlightenment ) exec enlightenment_start;;
ede ) exec startede;;
fluxbox ) exec startfluxbox;;
gnome ) exec gnome-session;;
gnome-classic ) exec gnome-session --session=gnome-classic;;
i3|i3wm ) exec i3;;
icewm ) exec icewm-session;;
jwm ) exec jwm;;
kde ) exec startkde;;
mate ) exec mate-session;;
monster|monsterwm ) exec monsterwm;;
notion ) exec notion;;
openbox ) exec openbox-session;;
unity ) exec unity;;
xfce|xfce4 ) exec startxfce4;;
xmonad ) exec xmonad;;
# No known session, try to run it as command
*) exec $1;;
esac
exec X :0.0 -nolisten tcp -keeptty > ~/.xorg.log 2>&1
exec X :0.1 -nolisten tcp -keeptty > ~/.xorg.log 2>&1
Section "Monitor"
Identifier "Monitor0"
Option "DPMS"
Option "PreferredMode" "2560x1440_60.00"
EndSection
Section "Monitor"
Identifier "Monitor1"
Option "PreferredMode" "1600x900_60.00"
Option "LeftOf" "Monitor0"
Option "DPMS"
EndSection
Section "ServerLayout"
Identifier "Main Layout"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" LeftOf "Screen0"
Option "BlankTime" "15"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "30"
EndSection
Section "Screen"
Identifier "Screen0"
Device "NVIDIA GeForce GTX 980"
Monitor "Monitor0"
SubSection "Display"
Virtual 2560 1440
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "NVIDIA GeForce GTX 980"
Monitor "Monitor1"
SubSection "Display"
Virtual 1600 900
EndSubSection
EndSection
Section "Device"
Identifier "NVIDIA GeForce GTX 980"
VendorName "NVIDIA Corporation"
Driver "nouveau"
BusID "PCI:6:0:0"
BoardName "GeForce GTX 980"
Option "Monitor-DVI-I-1" "Screen0"
Option "Monitor-DVI-I-2" "Screen1"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment