2 set -e; .
/usr
/local
/lib
/bash-bear
; set +e
4 if [[ -e /tmp
/no-obs-auto-scene-switch
]]; then
5 rm -f /tmp
/no-obs-auto-scene-switch
6 if [[ -s /tmp
/last-obs-i3-mark
]]; then
7 p
=$
(cat /p
/obs-ws-pass
)
8 mark
=$
(cat /tmp
/last-obs-i3-mark
)
9 obs-cmd
-w obsws
://localhost
:4455/$p scene switch
$mark
12 touch /tmp
/no-obs-auto-scene-switch
13 obs-cmd
-w obsws
://localhost
:4455/$p scene switch interlude