From 6791ce58050c2d978b2b5ccf905786367eff322f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 4 Dec 2011 21:52:44 +0000 Subject: [PATCH] ticket #920: [Patch] Add -module-list to enlightenment_remote SVN revision: 65871 --- data/tools/enlightenment_remote | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/data/tools/enlightenment_remote b/data/tools/enlightenment_remote index 7ca60db5a..a8c96a314 100644 --- a/data/tools/enlightenment_remote +++ b/data/tools/enlightenment_remote @@ -19,6 +19,7 @@ OPTIONS: -restart Restart Enlightenment -exit Exit Enlightenment + -module-list List all loaded modules -module-enable OPT1 Enable the module named 'OPT1' -module-disable OPT1 Disable the module named 'OPT1' -module-load OPT1 Loads the module named 'OPT1' into memory @@ -228,6 +229,14 @@ er_module_enable(){ ERCS org.enlightenment.wm.Module.Enable "$2" } +#------------------------------------------------------------------------------- +# E Module List +#------------------------------------------------------------------------------- +er_module_list(){ + echo 'Module -- Status' + ERGMST org.enlightenment.wm.Module.List | \ + sed -e 's/ 1/ -- Enabled/' -e 's/ 0/ -- Disabled/' +} #------------------------------------------------------------------------------- # E Module Load #------------------------------------------------------------------------------- @@ -359,6 +368,9 @@ case "$1" in -exit) er_exit ;; + -module-list) + er_module_list + ;; -module-enable) er_module_enable "$@" ;; @@ -423,7 +435,7 @@ esac ################################################################################ ignore_this(){ # IGNORE THIS SECTION -# think at it just like as a TODO list or a list where are listed all the old options of enlightenmen_remote +# think at it just like as a TODO list or a list where are listed all the old options of enlightenment_remote # Remember that the elements of this next list are removed every time they are implemented on this tool echo "