aboutsummaryrefslogtreecommitdiffstats
path: root/bin/nvsetup
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2013-12-31 14:19:23 +0100
committerDavid Runge <david.runge@frqrec.com>2013-12-31 14:19:23 +0100
commit931c8711d64b50c240c5cf1079480094dbde9ff1 (patch)
tree330d282d31afdf14412a60569d87e86603bcae9b /bin/nvsetup
parentd9fd1d6971d8b3d71a0f1556a3b5d29ea6641ac2 (diff)
downloaddotfiles-931c8711d64b50c240c5cf1079480094dbde9ff1.tar.gz
dotfiles-931c8711d64b50c240c5cf1079480094dbde9ff1.tar.bz2
dotfiles-931c8711d64b50c240c5cf1079480094dbde9ff1.tar.xz
dotfiles-931c8711d64b50c240c5cf1079480094dbde9ff1.zip
Adding new scripts from /usr/local/bin and updating backup-profiles and autostart
Diffstat (limited to 'bin/nvsetup')
-rwxr-xr-xbin/nvsetup10
1 files changed, 10 insertions, 0 deletions
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