2 #actions done when the menu button is pressed
3 #only argument is the time the button was pressed in seconds
5 if [ "$1" -ge "3" ]; then #button was pressed 3 sec or longer, show list of apps to kill instead of launcher
13 echo "displaying kill list"
14 pidlist=$(pstree -lpA | grep pnd_run.sh | sed -ne 's/.*-\(.*\)(\([0-9]\+\))/\2\n \1/p' | zenity --list --multiple --column "pid" --column "name" --title "kill" --text "which apps should be killed" | sed 's/|/\n/')
20 echo "starting appfinder"
24 echo "no x, killing all pnd aps so x gets restarted"
25 pndrunning=$(pstree -lpA | grep pnd_run.sh | sed -ne 's/.*(\([0-9]\+\))/\1/p')