scripts

random assortment of scripts
git clone git://git.andersuno.nu/scripts.git
Log | Files | Refs

commit 482b7e4f524a6eda8ebabfee9505d00d817c8b64
parent 3eaa155809538894571a8a58e447094ddfcdd04e
Author: andersuno <anders.hedman01@gmail.com>
Date:   Tue, 14 Jan 2020 03:58:24 +0100

 Changes to be committed:
	modified:   .scriptmenu
	modified:   bspwmscreenOFF.sh
	deleted:    bspwmscreenVGA.sh
	modified:   screenoutput.sh

Diffstat:
M.scriptmenu | 2+-
MbspwmscreenOFF.sh | 2+-
DbspwmscreenVGA.sh | 4----
Mscreenoutput.sh | 27++++++++++-----------------
4 files changed, 12 insertions(+), 23 deletions(-)

diff --git a/.scriptmenu b/.scriptmenu @@ -1,6 +1,6 @@ #!/bin/sh -chosen=$(find "$HOME/Scripts/" -perm /u+x -type f -printf "%f\n" | sort | dmenu -i -l 20 -fn Monospace-16) +chosen=$(find "$HOME/Scripts/" -path $HOME/Scripts/.git -prune -o -perm /u+x -type f -printf "%f\n" | sort | dmenu -i -l 20 -fn Monospace-16) [ "$chosen" != "" ] || exit diff --git a/bspwmscreenOFF.sh b/bspwmscreenOFF.sh @@ -1,3 +1,3 @@ #!/bin/sh -bspc monitor eDP1 -d I II III IV V VI VII VIII IX X +bspc monitor eDP1 -d 1 2 3 4 5 6 7 8 9 10 diff --git a/bspwmscreenVGA.sh b/bspwmscreenVGA.sh @@ -1,4 +0,0 @@ -#!/bin/sh - -bspc monitor eDP1 -d I II III IV V -bspc monitor DP1 -d VI VII VIII IX X diff --git a/screenoutput.sh b/screenoutput.sh @@ -1,23 +1,16 @@ #!/bin/sh -chosen=$(echo "1. VGA Off -2. VGA Above -3. VGA Right -4. VGA Left -5. HDMI Off -6. HDMI Above -7. HDMI Right -8. HDMI Left" | dmenu -i -l 20 -fn Monospace-18 | cut -c1) +chosen=$(echo "1. HDMI Off +2. HDMI Above +3. HDMI Right +4. HDMI Left" | dmenu -i -l 20 -fn Monospace-18 | cut -c1) -[ "$chosen" = "1" ] && xrandr --output DP1 --off && /home/anders/Scripts/bspwmscreenOFF.sh -[ "$chosen" = "2" ] && xrandr --output DP1 --auto --above eDP1 && /home/anders/Scripts/bspwmscreenVGA.sh -[ "$chosen" = "3" ] && xrandr --output DP1 --auto --right-of eDP1 && /home/anders/Scripts/bspwmscreenVGA.sh -[ "$chosen" = "4" ] && xrandr --output DP1 --auto --left-of eDP1 && /home/anders/Scripts/bspwmscreenVGA.sh -[ "$chosen" = "5" ] && xrandr --output HDMI2 --off -[ "$chosen" = "6" ] && xrandr --output HDMI2 --auto --above eDP1 -[ "$chosen" = "7" ] && xrandr --output HDMI2 --auto --right-of eDP1 -[ "$chosen" = "8" ] && xrandr --output HDMI2 --auto --left-of eDP1 +[ "$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" != "" ] && sleep 1; /home/anders/.fehbg +#reload background, if resolution differ it will be messed up otherwise +[ "$chosen" != "" ] && sleep 1; $HOME/.fehbg exit