X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=obs-i3-interlude;fp=obs-i3-interlude;h=303dec16e3465b269838c69df2f6431ea5440aa1;hp=0000000000000000000000000000000000000000;hb=d67edcdca8795a4bca116aa532d02dda246a6f53;hpb=a9e3d60b4254cd5c6216c4b3e7f8cd5cc5107fad diff --git a/obs-i3-interlude b/obs-i3-interlude new file mode 100755 index 0000000..303dec1 --- /dev/null +++ b/obs-i3-interlude @@ -0,0 +1,14 @@ +#!/bin/bash +set -e; . /usr/local/lib/bash-bear; set +e + +if [[ -e /tmp/no-obs-auto-scene-switch ]]; then + rm -f /tmp/no-obs-auto-scene-switch + if [[ -s /tmp/last-obs-i3-mark ]]; then + p=$(cat /p/obs-ws-pass) + mark=$(cat /tmp/last-obs-i3-mark) + obs-cmd -w obsws://localhost:4455/$p scene switch $mark + fi +else + touch /tmp/no-obs-auto-scene-switch + obs-cmd -w obsws://localhost:4455/$p scene switch interlude +fi