
5 Feb
2013
5 Feb
'13
7:58 a.m.
Quoting Mina Nagy Zaki
How would I go about spawning an external process with the XID of the focused window as an argument? I currently spawn this process and use xprop and click on the focused window to get its PID.
You may use XMonad.Operations.withFocused :: (Window -> X ()) -> X () for this. For example: ((0, xK_Print), withFocused (\xid -> spawn ("print-screen-app " ++ show xid))) ~d