From 931c8711d64b50c240c5cf1079480094dbde9ff1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 31 Dec 2013 14:19:23 +0100 Subject: Adding new scripts from /usr/local/bin and updating backup-profiles and autostart --- bin/nvsetup | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/nvsetup (limited to 'bin/nvsetup') diff --git a/bin/nvsetup b/bin/nvsetup new file mode 100755 index 0000000..23adeb5 --- /dev/null +++ b/bin/nvsetup @@ -0,0 +1,10 @@ +#!/bin/bash + +SCREENCONNECTED=$(xrandr|grep DP-1) +if [[ -n "$(lsmod|grep nouveau)" ]]; then + if [[ "$SCREENCONNECTED" == *connected* && "$SCREENCONNECTED" != *disconnected* ]]; then + echo "Setup DP-1" +# sleep 5 + xrandr --output DP-1 --auto --primary --output LVDS-1 --auto --right-of DP-1 + fi +fi -- cgit v1.2.3-70-g09d2