dotfiles

personal configuration files and scripts
git clone https://tongong.net/git/dotfiles.git
Log | Files | Refs | README

dmenu-screen (660B)


      1 #!/usr/bin/sh
      2 
      3 open=$(echo -e "dual\nmono\nrestore\narandr" | dmenu -p "screen:")
      4 
      5 case $open in
      6     # the xrandr commands are not up to date
      7     dual)
      8         xrandr --output VGA-1 --off --output HDMI-1 --mode 1920x1080 --pos 1368x0 --rotate normal --output LVDS-1 --mode 1366x768 --pos 0x0 --rotate normal
      9         ;;
     10     mono)
     11         xrandr --output VGA-1 --off --output HDMI-1 --off --output LVDS-1 --mode 1366x768 --pos 0x0 --rotate normal
     12         ;;
     13     restore)
     14         nitrogen --restore
     15         # not really related to the screen but whatever
     16         setxkbmap de -option caps:escape
     17         ;;
     18     arandr)
     19         arandr
     20         exit
     21         ;;
     22 esac