Closed gipert closed 4 years ago
using an external rule you could check for any window property and act on that (derive from xprop output of the window ID)
Is it possible to, for example, focus a window by its WM_CLASS or WM_NAME? You can xprop -name <WM_NAME>
to get the window's properties but I'm not sure what to look for in the output that could translate into NODE_SEL. Any clues?
@luigipertoldi Here is an example of what @neeasade proposed you should do.
@R3load There are plenty of ways to achieve that. You can use e.g. xdo id -a <WM_NAME>
or xdotool search --name <WM_NAME>
and then pass it to bspc node --focus <WIN_ID>
. A full example would be this:
for wid in $(xdotool search --name chrome); do
bspc node --focus $wid && break
done
Don't know if this is the right place for this...
It's not possible to assign an application to a desktop using its WM_NAME attribute, right? I found my software has an empty WM_CLASS attribute.
Cheers