From 7611aff35b27bd1d9940e4f12c6014e05e5f096f Mon Sep 17 00:00:00 2001 From: arcan1s Date: Sat, 21 Jun 2014 20:27:39 +0400 Subject: [PATCH] edited twinmon function --- zshrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zshrc b/zshrc index 3ed9f83..3dac126 100644 --- a/zshrc +++ b/zshrc @@ -321,13 +321,11 @@ projctl () { twinmon () { FIRSTMON="LVDS1" - FIRSTMONRESOL="1366x768" SECONDMON="VGA1" - SECONDMONRESOL="1280x1024" if [[ $1 == "off" ]]; then - xrandr --output $FIRSTMON --mode $FIRSTMONRESOL --primary --output $SECONDMON --off + xrandr --output $FIRSTMON --auto --primary --output $SECONDMON --off else - xrandr --output $FIRSTMON --mode $FIRSTMONRESOL --primary --output $SECONDMON --mode $SECONDMONRESOL --left-of $FIRSTMON + xrandr --output $FIRSTMON --auto --primary --output $SECONDMON --auto --left-of $FIRSTMON fi }