Re: [xmonad] Spawning an external process with focused window XID

5 Feb
2013
5 Feb
'13
5:21 a.m.
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. -- Mina Nagy Zaki

5 Feb
5 Feb
7:58 a.m.
New subject: Spawning an external process with focused window XID
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
4487
Age (days ago)
4487
Last active (days ago)
1 comments
2 participants
participants (2)
-
Mina Nagy Zaki
-
wagnerdm@seas.upenn.edu