From 08845cec6393482a60493e465f0ba13727386f5b Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 8 May 2016 20:22:16 +0200 Subject: bin/set_volume: Making script not depend on functions.sh anymore. Introducing bash strict mode. --- bin/screensetup | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 bin/screensetup (limited to 'bin/screensetup') diff --git a/bin/screensetup b/bin/screensetup deleted file mode 100755 index b15d63e..0000000 --- a/bin/screensetup +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -#set dpms and screen blanking -xset +dpms -xset s 360 360 - -# Setup screens - -# get info from xrandr -IFS=$'\r\n' connectedOutputs=($(xrandr | grep " connected" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/")) - -#if more than one screen, setup both, using the external left of the internal as primary -if [ ${#connectedOutputs[@]} -gt 1 ]; then - xrandr --output "${connectedOutputs[0]}" --auto --output "${connectedOutputs[1]}" --auto --primary --left-of "${connectedOutputs[0]}" -fi - - -- cgit v1.2.3-54-g00ecf