I currently use awesomewm
As I solve math problems I need to time them, I use Kronometer (from KDE) to keep record of the time taken by Lapping, I also have their solutions open on Okular, I need to repeatedly switch between the two. Kronometer does not have global Keybinding and can't be controlled by terminal (afaik) or I could just control via awful.spawn.
I basically need to switch focus to kronometer when spacebar, enter or escape (which I use to control kronometer) IF Okular is in focus and a similar thing for up and down arrows for switching to okular.
Simply switching and not doing the action is acceptable as I can press the key again.
I'm sure I must not be the first person to face this kinda thing, do you guys have any suggestions? Non awesome solutions are also perfectly fine