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>