diff options
Diffstat (limited to 'README.org')
| -rw-r--r-- | README.org | 65 | 
1 files changed, 61 insertions, 4 deletions
| @@ -274,11 +274,68 @@ ansible-playbook -i inventory.yml prod-playbook.yml --tags obs  Resizing VNC after connection  xrandr -s 1280x720 - -Firefox profiles like to be created in an X environment +** Firefox +*** Firefox profiles like to be created in an X environment  firefox -no-remote -CreateProfile "{{ emacsconf_id }}-{{ item.item.id }} - -Update scenes from the gen copy: +*** Install Tampermonkey extension and scripts                     :manual: + +For each track: + +1. Install the Tampermonkey extension by going to https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/ . + +2. Install the script by clicking on the Tampermonkey extension, choosing *Install New Script*, and pasting in the following: + +   #+begin_src js :eval no +   // ==UserScript== +   // @name         Emacsconf BBB setup +   // @namespace    https://emacsconf.org/ +   // @version      0.1 +   // @description  Join BBB and set things up +   // @author       You +   // @match        https://bbb.emacsverse.org/* +   // @icon         https://www.google.com/s2/favicons?sz=64&domain=emacsverse.org +   // @grant        none +   // ==/UserScript== +   ( +       async function() { +           'use strict'; +           const NAME = 'emacsconf'; +           async function waitUntil(conditionFunc, interval=500, timeout=null) { +               let initResult = conditionFunc(); +               if (initResult) return initResult; +               return new Promise((resolve, reject) => { +                   let timeSoFar = 0; +                   let timer = setInterval(() => { +                       let result = conditionFunc(); +                       if (result) { +                           clearInterval(timer); +                           resolve(result); +                       } +                       timeSoFar += interval; +                       if (timeout && timeSoFar > timeout) { +                           clearInterval(timer); +                           reject(); +                       } +                   }, interval); +               }); +           } +           if (document.querySelector('input.join-form')) { +               document.querySelector('input.join-form').value = NAME; +               document.querySelector('#room-join').click(); +               return; +           } +           await waitUntil(() => document.querySelector('.icon-bbb-listen')).then((e) => e.closest('button').click()); +           await waitUntil(() => document.querySelector('.icon-bbb-user')).then((e) => e.closest('button').click()); +   })(); +   #+end_src + +   Press =Ctrl+s= to save. + +   Join an BBB meeting and switch out of full-screen with F11. Check the address bar to see if autoplay is disabled (crossed-out autoplay icon). If it is, click on it and change *Block audio* to *Allow audio and video*. + + + +** How to update scenes from the gen copy  ssh emacsconf-gen@res.emacsconf.org -p 46668 "cat ~/.config/obs-studio/basic/scenes/emacsconf.json" | jq 'walk(if type == "string" then gsub("emacsconf"; "{{ emacsconf_id }}") else . end)' > roles/obs/templates/scenes.json  ansible-playbook -i inventory.yml prod-playbook.yml --tags obs-scene | 
