commit cc7244bafd45146556ed34979c8b0f3912ad7f62 parent 12c69019dc41a416233af27561c3fd35aa017c63 Author: parazyd <parazyd@dyne.org> Date: Fri, 18 Dec 2015 16:54:27 +0100 added close function in tomb lists Diffstat:
M | README.md | | | 1 | + |
M | gtomb | | | 28 | +++++++++++++++++++++++++++- |
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -20,6 +20,7 @@ list and the script will run it for you. Easy-peasy. ## TODO * Complete error checking * Figure out why ps fails sometimes +* index and search * and more stuff ## What you need to do diff --git a/gtomb b/gtomb @@ -538,7 +538,33 @@ function _list { res=$? case $res in 0) - exec _main + listchoice=`zenity \ + --title="Choose action" \ + --window-icon="$MONMORT" \ + --width=640 --height=200 --list \ + --separator=" & " \ + --text="What do you want to do with this tomb?" \ + --column=Command \ + --column=Description \ + "close" "Close the selected tomb." \ + "resize" "Resize the selected tomb."` + + if [[ $? == 1 ]]; then + exec _main + fi + + case $listchoice in + close) + sudoassword=$(ask_password "Insert sudo password for user $USER") + echo -e "$sudoassword\n" | sudo -S -v + _sudowrong + + sudo tomb close $tombname + _zeninfo "Success" "Tomb closed successfully!" + exec _main + ;; + # See what else to add + esac ;; 1) exec _main