Confirmation dialog for xkill with Zenity
Posted: 17. Feb 2011, 12:47
Please DO NOT dedicate more than 1 minute on this post, it is really not worth the trouble
Do you know the GNOME Panel applet that is terminating running applications after clicking on them with the cursor and confirming the action with a Yes/No dialogue?
I know about xkill, but it is not satisfying due to it has not confirmation dialogue.
Instead, I would like to use xprop and kill and zenity
Here's what I have accomplished thus far:
PID_NUMBER
APPLICATION_NAME
It should do something like this:
Any solutions?
Do you know the GNOME Panel applet that is terminating running applications after clicking on them with the cursor and confirming the action with a Yes/No dialogue?
I know about xkill, but it is not satisfying due to it has not confirmation dialogue.
Instead, I would like to use xprop and kill and zenity
Here's what I have accomplished thus far:
PID_NUMBER
Code: Select all
xprop|grep "PID"|sed "s/[^0-9]//g"
Code: Select all
xprop|grep "WM_CLASS"|cut -d \" -f 2
Code: Select all
zenity --question --text "Are you sure you want to terminate <APPLICATION_NAME>?"; kill pid <PID_NUMBER>