summaryrefslogtreecommitdiffstats
path: root/roles/obs
diff options
context:
space:
mode:
Diffstat (limited to 'roles/obs')
-rw-r--r--roles/obs/templates/bashrc3
-rwxr-xr-xroles/obs/templates/pulse1
-rw-r--r--roles/obs/templates/scenes.json193
3 files changed, 195 insertions, 2 deletions
diff --git a/roles/obs/templates/bashrc b/roles/obs/templates/bashrc
index 0eda190..6312d26 100644
--- a/roles/obs/templates/bashrc
+++ b/roles/obs/templates/bashrc
@@ -122,3 +122,6 @@ alias mum-vol="pactl set-sink-volume {{ item.id }}-mumble "
export TZ={{ emacsconf_timezone }}
export PATH=$PATH:$HOME/bin
export DISPLAY=${DISPLAY:-:{{ item.vnc_id }}}
+if [ "x$DISP" != "x" ]; then
+ export DISPLAY={{ item.vnc_id }}
+fi
diff --git a/roles/obs/templates/pulse b/roles/obs/templates/pulse
index 7035cfe..c1fbcc0 100755
--- a/roles/obs/templates/pulse
+++ b/roles/obs/templates/pulse
@@ -137,4 +137,5 @@ load-module module-filter-apply
load-module module-null-sink sink_name={{ item.id }}-vid sink_properties=device.description={{ item.id }}-vid
load-module module-null-sink sink_name={{ item.id }}-qa sink_properties=device.description={{ item.id }}-qa
+load-module module-null-sink sink_name={{ item.id }}-mumble sink_properties=device.description={{ item.id }}-mumble
load-module module-stream-restore restore_device=false
diff --git a/roles/obs/templates/scenes.json b/roles/obs/templates/scenes.json
index 93a0592..62b1c7b 100644
--- a/roles/obs/templates/scenes.json
+++ b/roles/obs/templates/scenes.json
@@ -8,11 +8,15 @@
"active": true,
"interval": 300,
"non_matching_scene": "All track audio and screen",
- "switch_if_not_matching": true,
+ "switch_if_not_matching": false,
"switches": [
{
"scene": "Video audio and screen",
"window_title": ".*mpv"
+ },
+ {
+ "scene": "All track audio and screen",
+ "window_title": ".*Mozilla Firefox"
}
]
},
@@ -65,6 +69,9 @@
},
{
"name": "Video audio and screen"
+ },
+ {
+ "name": "Only mumble and screen"
}
],
"sources": [
@@ -74,6 +81,149 @@
"deinterlace_mode": 0,
"enabled": true,
"flags": 0,
+ "hotkeys": {
+ "OBSBasic.SelectScene": [
+ {
+ "alt": true,
+ "key": "OBS_KEY_M"
+ }
+ ],
+ "libobs.hide_scene_item.Screen Capture (XSHM)": [],
+ "libobs.hide_scene_item.gen-mumble": [],
+ "libobs.show_scene_item.Screen Capture (XSHM)": [],
+ "libobs.show_scene_item.gen-mumble": []
+ },
+ "id": "scene",
+ "mixers": 0,
+ "monitoring_type": 0,
+ "muted": false,
+ "name": "Only mumble and screen",
+ "prev_ver": 469762051,
+ "private_settings": {},
+ "push-to-mute": false,
+ "push-to-mute-delay": 0,
+ "push-to-talk": false,
+ "push-to-talk-delay": 0,
+ "settings": {
+ "custom_size": false,
+ "id_counter": 2,
+ "items": [
+ {
+ "align": 5,
+ "blend_method": "default",
+ "blend_type": "normal",
+ "bounds": {
+ "x": 0,
+ "y": 0
+ },
+ "bounds_align": 0,
+ "bounds_type": 0,
+ "crop_bottom": 0,
+ "crop_left": 0,
+ "crop_right": 0,
+ "crop_top": 0,
+ "group_item_backup": false,
+ "hide_transition": {
+ "duration": 0
+ },
+ "id": 1,
+ "locked": false,
+ "name": "{{ item.id }}-mumble",
+ "pos": {
+ "x": 0,
+ "y": 0
+ },
+ "private_settings": {},
+ "rot": 0,
+ "scale": {
+ "x": 1,
+ "y": 1
+ },
+ "scale_filter": "disable",
+ "show_transition": {
+ "duration": 0
+ },
+ "visible": true
+ },
+ {
+ "align": 5,
+ "blend_method": "default",
+ "blend_type": "normal",
+ "bounds": {
+ "x": 0,
+ "y": 0
+ },
+ "bounds_align": 0,
+ "bounds_type": 0,
+ "crop_bottom": 0,
+ "crop_left": 0,
+ "crop_right": 0,
+ "crop_top": 0,
+ "group_item_backup": false,
+ "hide_transition": {
+ "duration": 0
+ },
+ "id": 2,
+ "locked": false,
+ "name": "Screen Capture (XSHM)",
+ "pos": {
+ "x": 0,
+ "y": 0
+ },
+ "private_settings": {},
+ "rot": 0,
+ "scale": {
+ "x": 1,
+ "y": 1
+ },
+ "scale_filter": "disable",
+ "show_transition": {
+ "duration": 0
+ },
+ "visible": true
+ }
+ ]
+ },
+ "sync": 0,
+ "versioned_id": "scene",
+ "volume": 1
+ },
+ {
+ "balance": 0.5,
+ "deinterlace_field_order": 0,
+ "deinterlace_mode": 0,
+ "enabled": true,
+ "flags": 0,
+ "hotkeys": {
+ "libobs.mute": [],
+ "libobs.push-to-mute": [],
+ "libobs.push-to-talk": [],
+ "libobs.unmute": []
+ },
+ "id": "pulse_output_capture",
+ "mixers": 255,
+ "monitoring_type": 0,
+ "muted": false,
+ "name": "{{ item.id }}-mumble",
+ "prev_ver": 469762051,
+ "private_settings": {},
+ "push-to-mute": false,
+ "push-to-mute-delay": 0,
+ "push-to-talk": false,
+ "push-to-talk-delay": 0,
+ "settings": {
+ "device_id": "{{ item.id }}-mumble.monitor"
+ },
+ "sync": 0,
+ "versioned_id": "pulse_output_capture",
+ "volume": 1
+ },
+ {
+ "balance": 0.5,
+ "deinterlace_field_order": 0,
+ "deinterlace_mode": 0,
+ "enabled": true,
+ "flags": 0,
"hotkeys": {},
"id": "text_ft2_source",
"mixers": 0,
@@ -217,11 +367,13 @@
"libobs.hide_scene_item.News": [],
"libobs.hide_scene_item.Other overlay": [],
"libobs.hide_scene_item.Screen Capture (XSHM)": [],
+ "libobs.hide_scene_item.gen-mumble": [],
"libobs.hide_scene_item.gen-qa": [],
"libobs.hide_scene_item.gen-vid": [],
"libobs.show_scene_item.News": [],
"libobs.show_scene_item.Other overlay": [],
"libobs.show_scene_item.Screen Capture (XSHM)": [],
+ "libobs.show_scene_item.gen-mumble": [],
"libobs.show_scene_item.gen-qa": [],
"libobs.show_scene_item.gen-vid": []
},
@@ -238,7 +390,7 @@
"push-to-talk-delay": 0,
"settings": {
"custom_size": false,
- "id_counter": 24,
+ "id_counter": 26,
"items": [
{
"align": 5,
@@ -424,6 +576,43 @@
"duration": 0
},
"visible": true
+ },
+ {
+ "align": 5,
+ "blend_method": "default",
+ "blend_type": "normal",
+ "bounds": {
+ "x": 0,
+ "y": 0
+ },
+ "bounds_align": 0,
+ "bounds_type": 0,
+ "crop_bottom": 0,
+ "crop_left": 0,
+ "crop_right": 0,
+ "crop_top": 0,
+ "group_item_backup": false,
+ "hide_transition": {
+ "duration": 0
+ },
+ "id": 25,
+ "locked": false,
+ "name": "{{ item.id }}-mumble",
+ "pos": {
+ "x": 0,
+ "y": 0
+ },
+ "private_settings": {},
+ "rot": 0,
+ "scale": {
+ "x": 1,
+ "y": 1
+ },
+ "scale_filter": "disable",
+ "show_transition": {
+ "duration": 0
+ },
+ "visible": true
}
]
},