[arch-general] wmctrl doesn't show the PID of all windows

Ralf Mardorf ralf.mardorf at rocketmail.com
Wed Dec 30 13:36:49 UTC 2015


Hi,

wmctrl could fail, if I want to get the PID that belongs to a window?
assumed I want to kill just one instance of xfw, how could I e.g. get
the PID of the xfw windows?

[rocketmouse at archlinux ~]$ ps aux|grep -v grep|grep xfw
rocketm+ 28733  0.2  0.3 126964 13836 pts/4    S+   14:25   0:00 xfw
root     28734  0.0  0.1  72312  5216 pts/3    S+   14:26   0:00 sudo xfw
root     28735  0.2  0.3 127744 14220 pts/3    S+   14:26   0:00 xfw
[rocketmouse at archlinux ~]$ ps aux|grep -v grep|grep pluma
rocketm+ 28736  4.0  1.0 625936 40996 pts/2    Sl+  14:26   0:03 pluma
root     28741  0.0  0.1  72312  5112 pts/1    S+   14:26   0:00 sudo pluma
root     28742  3.1  0.8 991168 32152 pts/1    Sl+  14:26   0:01 pluma
[rocketmouse at archlinux ~]$ wmctrl -lp
0x00a00003 -1 25836  archlinux panel
0x00e0001d -1 25835  archlinux panel
0x00800007  0 28670  archlinux rocketmouse at archlinux:~
0x014004be  0 0            N/A .jackdrc - /home/rocketmouse
0x018004bf  0 0            N/A .bashrc - /root
0x01a00114  0 28736  archlinux .jackdrc (~) - Pluma
0x01c00110  0 28742  archlinux .bashrc (~) - Pluma
[rocketmouse at archlinux ~]$

Regards,
Ralf


More information about the arch-general mailing list