summaryrefslogtreecommitdiffstats
path: root/bin/hush/vscreen
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hush/vscreen')
-rwxr-xr-xbin/hush/vscreen17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/hush/vscreen b/bin/hush/vscreen
new file mode 100755
index 0000000..d39b389
--- /dev/null
+++ b/bin/hush/vscreen
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+
+case "$1" in
+ goto)
+ xrandr --addmode VIRTUAL1 1920x1080
+ xrandr --output VIRTUAL1 --auto --output eDP1 --auto --left-of VIRTUAL1
+ i3-switch-workspace virtual
+ ;;
+ off)
+ xrandr --output VIRTUAL1 --off
+ ;;
+ *)
+ echo "bad subcommand $1" >&2
+ exit 1
+ ;;
+esac