scripts

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

screenoutput.sh (777B)


      1 #!/bin/sh
      2 
      3 chosen=$(echo "1. HDMI Off
      4 2. HDMI On
      5 3. HDMI Above
      6 4. HDMI Right
      7 5. HDMI Left" | dmenu -i -l 20 -fn Monospace-18 | cut -c1)
      8 
      9 [ "$chosen" = "1" ] && xrandr --output HDMI2 --off && "$HOME/Scripts/.bspwmscreenOFF.sh"
     10 [ "$chosen" = "2" ] && xrandr --output HDMI2 --auto --same-as eDP1 && "$HOME/Scripts/.bspwmscreenOFF.sh"
     11 [ "$chosen" = "3" ] && xrandr --output HDMI2 --auto --above eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
     12 [ "$chosen" = "4" ] && xrandr --output HDMI2 --auto --right-of eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
     13 [ "$chosen" = "5" ] && xrandr --output HDMI2 --auto --left-of eDP1 && "$HOME/Scripts/.bspwmscreenHDMI2.sh"
     14 
     15 #reload background, if resolution differ it will be messed up otherwise
     16 [ "$chosen" != "" ] && sleep 1; "$HOME/.fehbg"
     17 
     18 exit