I want to do some specific things in a bash script if the current window belongs to the Firefox class
- I am aware of:
xdotool search -class firefox
then I could do some test to know if the former result is in the latter list inside my bash script but:
- Is there a better way to do that with xdotool?
NB: I am also aware that Autokey can do the trick but I cannot make it work with i3wm see that open issue