From 078e1c69b836ab2c4c671488764da78750c3c02f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 1 Aug 2020 00:28:48 -0400 Subject: add scripts to switch a workspace between a virtual screen this keeps it rendering even while offscreen so obs works correctly --- bin/hush/vscreen | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/hush/vscreen (limited to 'bin/hush/vscreen') 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 -- cgit v1.2.3-54-g00ecf