2

Ideally I could say $mod+J+E → jump to Emacs (wherever it is), and the same could be done for $mod+J+W → jump to Firefox (wherever it is).

It seems pretty trivial to jump to a workspace, using workspace 3 or some variant, but going to a particular window is not as obvious.

Any ideas?

1 Answer 1

3
bindsym $mod+j+f [class=Firefox] focus
bindsym $mod+j+e [class=Emacs] focus

You can get the class argument for any currently window with the following command:

xprop -name <window title> | grep WM_CLASS

This will return something like

WM_CLASS(STRING) = "emacs", "Emacs"

The second string, here Emacs is the argument for the class parameter.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .