Created
January 14, 2014 05:04
-
-
Save wchargin/8413363 to your computer and use it in GitHub Desktop.
Identify process by X window (like xkill but for info)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xprop | awk '($1=="_NET_WM_PID(CARDINAL)") {print $3}' | xargs ps h -o pid,cmd | xargs notify-send |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
xprop | awk '($1=="_NET_WM_PID(CARDINAL)") {print $3}' | xargs ps h -o pid,cmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put in
/usr/bin/
andchmod a+rx
to use. Then, runxwhich
from a terminal orgxwhich
from AltF2 or a similar GUI launcher.