aboutsummaryrefslogtreecommitdiff
path: root/X
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-14 14:30:07 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-14 14:30:07 +1300
commitc8370aafa5a7227330d49deeb96d0e2d060d51b5 (patch)
tree1e64ff320b2cea1d6cef58738bceb20f825dc7df /X
parentFinish xrq(1df) man page (diff)
downloaddotfiles-c8370aafa5a7227330d49deeb96d0e2d060d51b5.tar.gz
dotfiles-c8370aafa5a7227330d49deeb96d0e2d060d51b5.zip
Add hook to load xrandr(1) file first
Here's mine on my home desktop: # Size monitors xrandr --output DVI-0 --auto xrandr --output DisplayPort-1 --auto xrandr --output DVI-1 --auto # Place monitors xrandr --output DVI-0 --pos 0x360 xrandr --output DisplayPort-1 --pos 1920x0 xrandr --output DVI-1 --pos 4480x360
Diffstat (limited to 'X')
-rw-r--r--X/xinitrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/X/xinitrc b/X/xinitrc
index e0b3d661..6f2ad45f 100644
--- a/X/xinitrc
+++ b/X/xinitrc
@@ -1,3 +1,6 @@
+# If a file ~/.xrandrrc exists for monitor setup, source that first
+[ -e "$HOME"/.xrandrrc ] && . "$HOME"/.xrandrrc
+
# Read X resources
xrdb "$HOME"/.Xresources