improve licensing
[distro-setup] / obs-i3-interlude
1 #!/bin/bash
2 set -e; . /usr/local/lib/bash-bear; set +e
3
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
10 fi
11 else
12 touch /tmp/no-obs-auto-scene-switch
13 obs-cmd -w obsws://localhost:4455/$p scene switch interlude
14 fi