summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsebastid <sebastid>2005-10-09 20:19:28 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-10-09 20:19:28 +0000
commit585e2af3a03145d09bd3782087ecc3f3fce11fdc (patch)
tree78e32ccfea4bc240d96bd7ad8bcab209c641eace /data
parent18d91213a43b4300012e8d7377796f54e936335b (diff)
engine set.
SVN revision: 17362
Diffstat (limited to 'data')
-rw-r--r--data/other/enlightenment_remote19
1 files changed, 17 insertions, 2 deletions
diff --git a/data/other/enlightenment_remote b/data/other/enlightenment_remote
index 081b986ed..650bbc4d5 100644
--- a/data/other/enlightenment_remote
+++ b/data/other/enlightenment_remote
@@ -18,7 +18,8 @@ _enlightenment_remote() {
18 prev=${COMP_WORDS[COMP_CWORD-1]} 18 prev=${COMP_WORDS[COMP_CWORD-1]}
19 action=${COMP_WORDS[1]} 19 action=${COMP_WORDS[1]}
20 opts=`enlightenment_remote -h | awk '{print $1}' | grep -v "OPTIONS:" | xargs` 20 opts=`enlightenment_remote -h | awk '{print $1}' | grep -v "OPTIONS:" | xargs`
21 CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY" 21 BINDING_CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY"
22 ENGINE_CONTEXT="CONTAINER INIT MENU BORDER ERROR POPUP DRAG WIN ZONE"
22 MODIFIERS="NONE SHIFT| SHIFT CONTROL| CONTROL ALT| ALT WIN| WIN" 23 MODIFIERS="NONE SHIFT| SHIFT CONTROL| CONTROL ALT| ALT WIN| WIN"
23 DIRS="data images fonts themes init icons modules backgrounds" 24 DIRS="data images fonts themes init icons modules backgrounds"
24 25
@@ -52,7 +53,7 @@ _enlightenment_remote() {
52 ;; 53 ;;
53 -binding-key-add) 54 -binding-key-add)
54 if [[ ${COMP_CWORD} -eq 2 ]]; then 55 if [[ ${COMP_CWORD} -eq 2 ]]; then
55 COMPREPLY=($(compgen -W "${CONTEXT}" -- "${cur}")) 56 COMPREPLY=($(compgen -W "${BINDING_CONTEXT}" -- "${cur}"))
56 elif [[ ${COMP_CWORD} -eq 3 ]]; then 57 elif [[ ${COMP_CWORD} -eq 3 ]]; then
57 COMPREPLY=() 58 COMPREPLY=()
58 elif [[ ${COMP_CWORD} -eq 4 ]]; then 59 elif [[ ${COMP_CWORD} -eq 4 ]]; then
@@ -122,6 +123,11 @@ _enlightenment_remote() {
122 # TODO Add filename expansion, and only match dirs and .edj files 123 # TODO Add filename expansion, and only match dirs and .edj files
123 return 0 124 return 0
124 ;; 125 ;;
126 -default-engine-set)
127 engines=$(enlightenment_remote -engine-list|grep REPLY:|awk '{print $2}')
128 COMPREPLY=($(compgen -W "${engines}" -- "${cur}"))
129 return 0
130 ;;
125 -default-profile-set) 131 -default-profile-set)
126 profiles=$(enlightenment_remote -profile-list|grep REPLY:|awk '{print $2}') 132 profiles=$(enlightenment_remote -profile-list|grep REPLY:|awk '{print $2}')
127 COMPREPLY=($(compgen -W "${profiles}" -- "${cur}")) 133 COMPREPLY=($(compgen -W "${profiles}" -- "${cur}"))
@@ -155,6 +161,15 @@ _enlightenment_remote() {
155 COMPREPLY=($(compgen -W "${displays}" -- "${cur}")) 161 COMPREPLY=($(compgen -W "${displays}" -- "${cur}"))
156 return 0 162 return 0
157 ;; 163 ;;
164 -engine-set)
165 if [[ ${COMP_CWORD} -eq 2 ]]; then
166 COMPREPLY=($(compgen -W "${ENGINE_CONTEXT}" -- "${cur}"))
167 elif [[ ${COMP_CWORD} -eq 3 ]]; then
168 engines=$(enlightenment_remote -engine-list|grep REPLY:|awk '{print $2}')
169 COMPREPLY=($(compgen -W "${engines}" -- "${cur}"))
170 fi
171 return 0
172 ;;
158 -exec-action) 173 -exec-action)
159 if [[ ${COMP_CWORD} -eq 2 ]]; then 174 if [[ ${COMP_CWORD} -eq 2 ]]; then
160 actions=$(enlightenment_remote -action-list|grep REPLY:|awk '{print $2}') 175 actions=$(enlightenment_remote -action-list|grep REPLY:|awk '{print $2}')