summaryrefslogtreecommitdiff
path: root/sc
blob: d543338fe8af14b3856672be8079338cef9e9801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Quick hack to manage screen hotplugging
#!/bin/dash
case "$1" in
	"d") xrandr --nograb --output VGA-0 --off --output LVDS --auto;;
	"r") xrandr --nograb --output VGA-0 --auto --primary --output LVDS --off;;
	"c") xrandr --nograb --output VGA-0 --auto --output LVDS --auto;;
	"n") xrandr --nograb --output LVDS --auto --above VGA-0 --output VGA-0 --auto;;
	"s") xrandr --nograb --output LVDS --auto --below VGA-0 --output VGA-0 --auto;;
	"e") xrandr --nograb --output LVDS --auto --right-of VGA-0 --output VGA-0 --auto;;
	"w") xrandr --nograb --output LVDS --auto --left-of VGA-0 --output VGA-0 --auto;;
  *)  xrandr --nograb ;;
esac;
#feh --bg-center "$BKG"