1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-09-18 17:51:42 +00:00
dotfiles/scripts/.bin/monitors

35 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-06-26 16:07:56 +00:00
#!/bin/sh
case $1 in
"single")
2015-09-19 16:32:17 +00:00
case $2 in
"HDMI")
~/.screenlayout/gsi-single.sh
xrandr --output eDP1 --off --output DVI-1 --off --output DP1 --off --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate normal --output VGA1 --off
;;
*)
#xrandr --auto --output eDP1 --primary --output DP1 --off
~/.screenlayout/gsi-single.sh
xrandr --output HDMI1 --off --output DVI-1 --off --output DP1 --off --output eDP1 --mode 1920x1080 --pos 0x0 --rotate normal --output VGA1 --off
;;
esac
;;
2014-06-26 16:07:56 +00:00
"dual")
case $2 in
2015-09-19 16:32:17 +00:00
"mirror")
xrandr --output DP1 --off --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --rotate normal --output HDMI1 --primary --mode 1920x1080 --same-as eDP1 --output VGA1 --off
;;
2014-06-26 16:07:56 +00:00
"home")
xrandr --output DP1 --off --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output VGA1 --off
2014-06-26 16:07:56 +00:00
;;
*)
2015-09-19 16:32:17 +00:00
#xrandr --auto --output eDP1 --primary --right-of DP1
xrandr --output VIRTUAL1 --off --output DP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output eDP1 --mode 1920x1080 --pos 1920x0 --rotate normal --output VGA1 --off
xrandr --output "DVI-1-0" --off
;;
2014-06-26 16:07:56 +00:00
esac
2015-09-19 16:32:17 +00:00
;;
2014-06-26 16:07:56 +00:00
esac
if [ `command -v nitrogen` ]; then
nitrogen --restore
fi