Exit mode on any other key
Hi,
I wanted to make some "go to App" mode, like Win+G O -> Focus Opera. So I made this config:
mode "gotoapp" {
bindsym o [class="opera"] focus
bindsym p [class="psi"] focus
bindsym t [class="roxterm" title="suk@pc"] focus
bindsym Escape mode "default"
bindsym Return mode "default"
}
bindsym $mod+g mode "gotoapp"
Is there a chance to make somethink like switch/case/default to return to default mode? Thank you! And, of course - how to run on one keystroke two commands (focus and return to default mode)?