scripts

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

commit 3da03fd0430b521324193f50d34c734bc86bc05c
parent f2abc53c487047fff99d7308b588bd0b7aba5185
Author: andersuno <anders.hedman01@gmail.com>
Date:   Thu,  6 Aug 2020 14:53:37 +0200

tidy up menu

Diffstat:
RbspwmscreenHDMI2.sh -> .bspwmscreenHDMI2.sh | 0
RbspwmscreenOFF.sh -> .bspwmscreenOFF.sh | 0
M.scriptmenu | 2+-
Mscreenoutput.sh | 10+++++-----
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/bspwmscreenHDMI2.sh b/.bspwmscreenHDMI2.sh diff --git a/bspwmscreenOFF.sh b/.bspwmscreenOFF.sh diff --git a/.scriptmenu b/.scriptmenu @@ -1,6 +1,6 @@ #!/bin/sh -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=$(find "$HOME/Scripts/" -path "$HOME/Scripts/.*" -prune -o -perm /u+x -type f -printf "%f\n" | sort | dmenu -i -l 20 -fn Monospace-16) [ "$chosen" != "" ] || exit diff --git a/screenoutput.sh b/screenoutput.sh @@ -5,12 +5,12 @@ chosen=$(echo "1. HDMI Off 3. HDMI Right 4. 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" = "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" #reload background, if resolution differ it will be messed up otherwise -[ "$chosen" != "" ] && sleep 1; $HOME/.fehbg +[ "$chosen" != "" ] && sleep 1; "$HOME/.fehbg" exit