page = None
if 'hold' in command:
page = page_history[0]
+ elif 'down' in command:
+ os.system(
+ "xdotool search --onlyvisible \"chrom\" windowactivate click --repeat 8 5"
+ )
+ return None
+ elif 'up' in command:
+ os.system(
+ "xdotool search --onlyvisible \"chrom\" windowactivate click --repeat 8 4"
+ )
+ return None
elif 'back' in command:
page = page_history[1]
elif 'skip' in command:
if command is not None:
logger.info(f'chooser: We got a verbal command ("{command}"), parsing it...')
- triggered = True
page = process_command(command, page_history, page_chooser)
+
+ if page:
+ triggered = True
else:
while True:
(page, triggered) = page_chooser.choose_next_page()