firefox(){ debug "no op for ff on this website" } firefox_youtube(){ # fullscreen split_up(){ xdotool key f } search(){ helpers search } play(){ xdotool key k } # kiosk split_right(){ xdotool key F11 } # go to yt.com in shared container desktop(){ helpers firefox 'ext+container:name=shared&url=https://youtube.com' close_last_tab } # open hh container back(){ helpers firefox 'ext+container:name=hh&url=https://youtube.com' close_last_tab } # open fr container forward(){ helpers firefox 'ext+container:name=fr&url=https://youtube.com' close_last_tab } } firefox_pbs(){ firefox_init split_up(){ xdotool mousemove 500 300 xdotool click 1 click 1 } play(){ xdotool mousemove 500 300 xdotool click 1 } desktop(){ helpers home "https://www.pbs.org" } } ### helpers helpers(){ close_last_tab(){ sleep .2 xdotool key ctrl+shift+Tab sleep .1 xdotool key ctrl+w } search(){ sleep .2 xdotool key slash sleep .2 xdotool key ctrl+a sleep .2 xdotool key BackSpace } }