Permalink
Browse files

[xinitrc] Use an optional external script to configure xrandr.

  • Loading branch information...
1 parent e8a26b9 commit dc92a6498574aade99148bcb9c81995355a81b2a @mfs committed Apr 12, 2012
Showing with 2 additions and 7 deletions.
  1. +2 −7 xinitrc
View
@@ -18,13 +18,8 @@ xset +fp /usr/local/share/fonts/codec
# Replace ugly default cursor
xsetroot -cursor_name left_ptr
-# If two monitors are present, setup tiling.
-if [[ -x /usr/bin/xrandr ]]; then
- OUTPUTS=($( xrandr | grep ' connected ' | cut -f 1 -d ' '))
- if [[ ${#OUTPUTS[@]} == 2 ]]; then
- xrandr --output ${OUTPUTS[0]} --left-of ${OUTPUTS[1]}
- fi
-fi
+# Execure script to configure monitors
+[[ -x ~/bin/xrandr-setup ]] && ~/bin/xrandr-setup
# Set wallpaper
nitrogen --restore

0 comments on commit dc92a64

Please sign in to comment.