From 1957b894290bcbee8767f6cd11d24927c21cdf9a Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 23 Nov 2022 14:44:11 -0500 Subject: pad stuff --- roles/obs/templates/bashrc | 3 + roles/obs/templates/pulse | 1 + roles/obs/templates/scenes.json | 193 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 195 insertions(+), 2 deletions(-) (limited to 'roles/obs') 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,9 +69,155 @@ }, { "name": "Video audio and screen" + }, + { + "name": "Only mumble and screen" } ], "sources": [ + { + "balance": 0.5, + "deinterlace_field_order": 0, + "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, @@ -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 } ] }, -- cgit v1.2.3