commit c640e53618dde4090da24f0d3c9e06fbb881b990 parent cc7244bafd45146556ed34979c8b0f3912ad7f62 Author: parazyd <parazyd@dyne.org> Date: Fri, 18 Dec 2015 16:56:48 +0100 added slam in tomb lists Diffstat:
M | gtomb | | | 12 | +++++++++++- |
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gtomb b/gtomb @@ -547,7 +547,7 @@ function _list { --column=Command \ --column=Description \ "close" "Close the selected tomb." \ - "resize" "Resize the selected tomb."` + "slam" "Slam the selected tomb."` if [[ $? == 1 ]]; then exec _main @@ -563,6 +563,16 @@ function _list { _zeninfo "Success" "Tomb closed successfully!" exec _main ;; + slam) + sudoassword=$(ask_password "Insert sudo password for user $USER") + echo -e "$sudoassword\n" | sudo -S -v + _sudowrong + + sudo tomb slam $tombname + _zeninfo "Success" "Tomb slammed successfully!" + exec _main + ;; + # See what else to add esac ;;