Created
November 2, 2012 13:13
-
-
Save lazyfrosch/4001310 to your computer and use it in GitHub Desktop.
auto display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_auto.sh | |
#!/bin/bash | |
info=$(nv-control-dpy --probe-dpys) | |
if [[ "$info" == *"BenQ FP767-12"* ]]; then | |
~/.screenlayout/home.sh | |
elif [[ "$info" == *"Idek Iiyama PLE2208HDS"* ]]; then | |
~/.screenlayout/work.sh | |
else | |
~/.screenlayout/mobile.sh | |
fi | |
#---------- | |
home.sh | |
#!/bin/sh | |
xrandr --output VGA-0 --mode 1280x1024 --pos 0x0 --rotate normal --output LVDS-0 --mode 1920x1080 --pos 1280x0 --rotate normal --output HDMI-0 --off --output DP-3 --off --output DP-2 --off --output DP-1 --off --output DP-0 --off | |
#---------- | |
mobile.sh | |
#!/bin/sh | |
xrandr --output VGA-0 --off --output LVDS-0 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-0 --off --output DP-3 --off --output DP-2 --off --output DP-1 --off --output DP-0 --off | |
#---------- | |
work.sh | |
#!/bin/sh | |
xrandr --output VGA-0 --mode 1920x1080 --pos 1920x0 --rotate normal --output LVDS-0 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-0 --off --output DP-3 --off --output DP-2 --off --output DP-1 --off --output DP-0 --off | |
#---------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment