commit 356c462e964dd04b2182c9aae6cd079237ac4daa
parent 052355de57c7f1ba9f9e8aad7bc6922e8d07bff6
Author: andersuno <anders.hedman01@gmail.com>
Date: Sun, 21 Mar 2021 15:18:31 +0100
Changes to be committed:
modified: .bspwmscreenHDMI2.sh
modified: .bspwmscreenOFF.sh
modified: mkansibleroledirs.sh
modified: screenoutput.sh
Diffstat:
4 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/.bspwmscreenHDMI2.sh b/.bspwmscreenHDMI2.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-bspc monitor HDMI2 -d 8 9 10
bspc monitor eDP1 -d 1 2 3 4 5 6 7
+bspc monitor HDMI2 -d 8 9 10
bspc wm -O eDP1 HDMI2
diff --git a/.bspwmscreenOFF.sh b/.bspwmscreenOFF.sh
@@ -1,3 +1,4 @@
#!/bin/sh
bspc monitor eDP1 -d 1 2 3 4 5 6 7 8 9 10
+bspc wm -O eDP1 HDMI2
diff --git a/mkansibleroledirs.sh b/mkansibleroledirs.sh
@@ -20,7 +20,7 @@ done
[ -e "$dir/$rolename" ] && echo "This directory already exist, OVERWRITE? [y/N]" && read -r ans
-[ "$ans" != y ] && [ "$ans" != Y ] && exit
+[ -e "$dir/$rolename" ] && [ "$ans" != y ] && [ "$ans" != Y ] && exit
for i in ${DIRS}; do
mkdir -p "$dir/$rolename/$i";
diff --git a/screenoutput.sh b/screenoutput.sh
@@ -1,14 +1,16 @@
#!/bin/sh
chosen=$(echo "1. HDMI Off
-2. HDMI Above
-3. HDMI Right
-4. HDMI Left" | dmenu -i -l 20 -fn Monospace-18 | cut -c1)
+2. HDMI On
+3. HDMI Above
+4. HDMI Right
+5. HDMI Left" | dmenu -i -l 20 -fn Monospace-18 | cut -c1)
[ "$chosen" = "1" ] && xrandr --output HDMI2 --off && "$HOME/Scripts/.bspwmscreenOFF.sh"
-[ "$chosen" = "2" ] && xrandr --output HDMI2 --auto --above eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
-[ "$chosen" = "3" ] && xrandr --output HDMI2 --auto --right-of eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
-[ "$chosen" = "4" ] && xrandr --output HDMI2 --auto --left-of eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
+[ "$chosen" = "2" ] && xrandr --output HDMI2 --auto --same-as eDP1 && "$HOME/Scripts/.bspwmscreenOFF.sh"
+[ "$chosen" = "3" ] && xrandr --output HDMI2 --auto --above eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
+[ "$chosen" = "4" ] && xrandr --output HDMI2 --auto --right-of eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
+[ "$chosen" = "5" ] && xrandr --output HDMI2 --auto --left-of eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
#reload background, if resolution differ it will be messed up otherwise
[ "$chosen" != "" ] && sleep 1; "$HOME/.fehbg"