summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rwxr-xr-xsc12
1 files changed, 12 insertions, 0 deletions
diff --git a/sc b/sc
new file mode 100755
index 0000000..4ea8f2e
--- /dev/null
+++ b/sc
@@ -0,0 +1,12 @@
+#!/bin/dash
+case "$1" in
+ "d") xrandr --nograb --output CRT1 --off --output LVDS --auto;;
+ "r") xrandr --nograb --output CRT1 --auto --primary --output LVDS --off;;
+ "c") xrandr --nograb --output CRT1 --auto --output LVDS --auto;;
+ "n") xrandr --nograb --output LVDS --auto --above CRT1 --output CRT1 --auto;;
+ "s") xrandr --nograb --output LVDS --auto --below CRT1 --output CRT1 --auto;;
+ "e") xrandr --nograb --output LVDS --auto --right-of CRT1 --output CRT1 --auto;;
+ "w") xrandr --nograb --output LVDS --auto --left-of CRT1 --output CRT1 --auto;;
+ *) xrandr --nograb ;;
+esac;
+#feh --bg-center "$BKG"