diff options
author | David Runge <david.runge@frqrec.com> | 2013-12-31 14:19:23 +0100 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2013-12-31 14:19:23 +0100 |
commit | 931c8711d64b50c240c5cf1079480094dbde9ff1 (patch) | |
tree | 330d282d31afdf14412a60569d87e86603bcae9b /bin/nvsetup | |
parent | d9fd1d6971d8b3d71a0f1556a3b5d29ea6641ac2 (diff) | |
download | dotfiles-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-x | bin/nvsetup | 10 |
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 |