refactor
This commit is contained in:
parent
a31e08bd5f
commit
388924ed6e
16 changed files with 951 additions and 294 deletions
74
apps/firefox.sh
Normal file
74
apps/firefox.sh
Normal file
|
@ -0,0 +1,74 @@
|
|||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue