Closed seletskiy closed 9 years ago
You can use xdo
bindings: https://github.com/jordansissel/xdotool/blob/master/xdo.h (package xdotool-git
in AUR).
There is method xdo_wait_for_window_focus
, which can be used to wait until focus changed, and then you just call some function from mcabber/screen.h
to hide chat window.
Hmm, I found interesting method in mcabber/commands.h
- do_chat_disable(char *arg);
. Yes, I think I implement this awesome plugin.
Cannot be plugin, because mcabber headers does not provide methods which can do this. So, there is two ways:
or of course seperate binary
Guesses?