summaryrefslogtreecommitdiff
path: root/sc
blob: a9e75f556b18ff67855241ac51ad7d093080caed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env sh
# Quick hack to manage screen hotplugging
case "$1" in
	"d") xrandr --nograb --output VGA1 --off --output LVDS1 --auto;;
	"r") xrandr --nograb --output VGA1 --auto --primary --output LVDS1 --off;;
	"c") xrandr --nograb --output VGA1 --auto --output LVDS1 --auto;;
	"n") xrandr --nograb --output LVDS1 --auto --above VGA1 --output VGA1 --auto;;
	"s") xrandr --nograb --output LVDS1 --auto --below VGA1 --output VGA1 --auto;;
	"e") xrandr --nograb --output LVDS1 --auto --right-of VGA1 --output VGA1 --auto;;
	"w") xrandr --nograb --output LVDS1 --auto --left-of VGA1 --output VGA1 --auto;;
  *)  xrandr --nograb ;;
esac;

[ -n "$BACKGROUND_IMAGE" ] && feh --bg-scale "$BACKGROUND_IMAGE"
ratpoison -c restart