tadded slam in tomb lists - gtomb - tomb gtk frontend in zenity
HTML git clone git://parazyd.org/gtomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c640e53618dde4090da24f0d3c9e06fbb881b990
DIR parent cc7244bafd45146556ed34979c8b0f3912ad7f62
HTML 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(-)
---
DIR diff --git a/gtomb b/gtomb
t@@ -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
t@@ -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
;;