summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsebastid <sebastid>2005-09-27 22:31:29 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-09-27 22:31:29 +0000
commit5c814cf9eea998cc005517217fa4aa4ee4fe4286 (patch)
treea0788bbcfc3183b84e591106482e39edd1a1a407 /data
parent260934e2773eb7a97ef883219abbe9692e938fe6 (diff)
More completion
SVN revision: 17002
Diffstat (limited to 'data')
-rw-r--r--data/other/enlightenment_remote102
1 files changed, 102 insertions, 0 deletions
diff --git a/data/other/enlightenment_remote b/data/other/enlightenment_remote
index 87df4f53a..7ca63456b 100644
--- a/data/other/enlightenment_remote
+++ b/data/other/enlightenment_remote
@@ -3,6 +3,18 @@
3# By Justin Rocha (Xenith) 3# By Justin Rocha (Xenith)
4# Additions by Sebastian Dransfeld 4# Additions by Sebastian Dransfeld
5 5
6# TODO:
7# Add here:
8# -binding-mouse-add, -binding-mouse-del
9# -binding-signal-add, -binding-signal-del
10# -binding-wheel-add, -binding-wheel-del
11# -desktop-bg-add, -desktop-bg-del
12# -desktop-name-add, -desktop-name-del
13# -exec-action
14#
15# Add in enlightenment_remote
16# -action-list
17
6_enlightenment_remote() { 18_enlightenment_remote() {
7 local cur prev opts 19 local cur prev opts
8 COMPREPLY=() 20 COMPREPLY=()
@@ -12,6 +24,8 @@ _enlightenment_remote() {
12 opts=`enlightenment_remote -h | awk '{print $1}' | grep -v "OPTIONS:" | xargs` 24 opts=`enlightenment_remote -h | awk '{print $1}' | grep -v "OPTIONS:" | xargs`
13 CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY" 25 CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY"
14 MODIFIERS="NONE SHIFT| SHIFT CONTROL| CONTROL ALT| ALT WIN| WIN" 26 MODIFIERS="NONE SHIFT| SHIFT CONTROL| CONTROL ALT| ALT WIN| WIN"
27 DIRS="data images fonts themes init icons modules backgrounds"
28 THEME_CATEGORIES="theme"
15 29
16 30
17 case "${action}" in 31 case "${action}" in
@@ -22,6 +36,8 @@ _enlightenment_remote() {
22 -always-click-to-raise-set| \ 36 -always-click-to-raise-set| \
23 -border-shade-animate-set| \ 37 -border-shade-animate-set| \
24 -edge-flip-set| \ 38 -edge-flip-set| \
39 -focus-last-focused-per-desktop-set| \
40 -focus-revert-on-hide-or-close-set| \
25 -kill-if-close-not-possible-set| \ 41 -kill-if-close-not-possible-set| \
26 -kill-process-set| \ 42 -kill-process-set| \
27 -modal-windows-set| \ 43 -modal-windows-set| \
@@ -32,6 +48,7 @@ _enlightenment_remote() {
32 -transient-*-set| \ 48 -transient-*-set| \
33 -use-*-set| \ 49 -use-*-set| \
34 -winlist-list-*-set| \ 50 -winlist-list-*-set| \
51 -winlist-scroll-animate-set| \
35 -winlist-warp-at-end-set| \ 52 -winlist-warp-at-end-set| \
36 -winlist-warp-while-selecting-set) 53 -winlist-warp-while-selecting-set)
37 COMPREPLY=($(compgen -W " 0 1" -- "${cur}")) 54 COMPREPLY=($(compgen -W " 0 1" -- "${cur}"))
@@ -104,6 +121,43 @@ _enlightenment_remote() {
104 COMPREPLY=($(compgen -W " 0 1 2 3" -- "${cur}")) 121 COMPREPLY=($(compgen -W " 0 1 2 3" -- "${cur}"))
105 return 0 122 return 0
106 ;; 123 ;;
124 -default-bg-set)
125 # TODO Add filename expansion, and only match dirs and .edj files
126 return 0
127 ;;
128 -default-profile-set)
129 profiles=$(enlightenment_remote -profile-list|grep REPLY:|awk '{print $2}')
130 COMPREPLY=($(compgen -W "${profiles}" -- "${cur}"))
131 return 0
132 ;;
133 -dirs-list)
134 COMPREPLY=($(compgen -W "${DIRS}" -- "${cur}"))
135 return 0
136 ;;
137 -dirs-list-append|-dirs-list-prepend)
138 if [[ ${COMP_CWORD} -eq 2 ]]; then
139 COMPREPLY=($(compgen -W "${DIRS}" -- "${cur}"))
140 elif [[ ${COMP_CWORD} -eq 3 ]]; then
141 # TODO Add filename expansion, and only match dirs
142 COMPREPLY=()
143 fi
144 return 0
145 ;;
146 -dirs-list-remove)
147 dir=${COMP_WORDS[2]}
148 if [[ ${COMP_CWORD} -eq 2 ]]; then
149 COMPREPLY=($(compgen -W "${DIRS}" -- "${cur}"))
150 elif [[ ${COMP_CWORD} -eq 3 ]]; then
151 dirs=$(enlightenment_remote -dirs-list ${dir}|grep REPLY:|awk '{print $2}')
152 COMPREPLY=($(compgen -W "${dirs}" -- "${cur}"))
153 fi
154 return 0
155 ;;
156 -display)
157 displays=$(/bin/ls $HOME/.ecore/enlightenment-\(*\)/0|sed -e 's+.*enlightenment-(\(.*\))/.*+\1+')
158 COMPREPLY=($(compgen -W "${displays}" -- "${cur}"))
159 return 0
160 ;;
107 -focus-policy-set) 161 -focus-policy-set)
108 COMPREPLY=($(compgen -W "CLICK MOUSE SLOPPY" -- "${cur}")) 162 COMPREPLY=($(compgen -W "CLICK MOUSE SLOPPY" -- "${cur}"))
109 return 0 163 return 0
@@ -112,6 +166,33 @@ _enlightenment_remote() {
112 COMPREPLY=($(compgen -W "NONE NEW_WINDOW NEW_DIALOG NEW_DIALOG_IF_OWNER_FOCUSED" -- "${cur}")) 166 COMPREPLY=($(compgen -W "NONE NEW_WINDOW NEW_DIALOG NEW_DIALOG_IF_OWNER_FOCUSED" -- "${cur}"))
113 return 0 167 return 0
114 ;; 168 ;;
169 -font-default-get|-font-default-remove)
170 classes=$(enlightenment_remote -font-default-list|grep REPLY:|sed -e 's/.*TEXT_CLASS=\"\(\S\+\)\".*/\1/')
171 COMPREPLY=($(compgen -W "${classes}" -- "${cur}"))
172 return 0
173 ;;
174 -font-default-set)
175 if [[ ${COMP_CWORD} -eq 2 ]]; then
176 classes=$(enlightenment_remote -font-default-list|grep REPLY:|sed -e 's/.*TEXT_CLASS=\"\(\S\+\)\".*/\1/')
177 COMPREPLY=($(compgen -W "${classes}" -- "${cur}"))
178 elif [[ ${COMP_CWORD} -eq 3 ]]; then
179 fonts=$(enlightenment_remote -font-available-list|grep REPLY:|awk '{print $2}')
180 COMPREPLY=($(compgen -W "${fonts}" -- "${cur}"))
181 elif [[ ${COMP_CWORD} -eq 4 ]]; then
182 COMPREPLY=()
183 fi
184 return 0
185 ;;
186 -font-fallback-remove)
187 fonts=$(enlightenment_remote -font-fallback-list|grep REPLY:|awk '{print $2}')
188 COMPREPLY=($(compgen -W "${fonts}" -- "${cur}"))
189 return 0
190 ;;
191 -lang-set)
192 languages=$(enlightenment_remote -lang-list|grep REPLY:|awk '{print $2}')
193 COMPREPLY=($(compgen -W "${languages}" -- "${cur}"))
194 return 0
195 ;;
115 -maximize-policy-set) 196 -maximize-policy-set)
116 COMPREPLY=($(compgen -W "FULLSCREEN SMART EXPAND FILL" -- "${cur}")) 197 COMPREPLY=($(compgen -W "FULLSCREEN SMART EXPAND FILL" -- "${cur}"))
117 return 0 198 return 0
@@ -126,11 +207,32 @@ _enlightenment_remote() {
126 COMPREPLY=($(compgen -W "${modules}" -- "${cur}")) 207 COMPREPLY=($(compgen -W "${modules}" -- "${cur}"))
127 return 0 208 return 0
128 ;; 209 ;;
210 -module-load)
211 extra_dir=$(enlightenment-config --module-dir)
212 # This is a hack. enlightenment-config should return extra dir and standard dir
213 dir=${extra_dir%_extra}
214 modules=$(cd ${dir} && /bin/ls && cd ${extra_dir} && /bin/ls)
215 COMPREPLY=($(compgen -W "${modules}" -- "${cur}"))
216 return 0
217 ;;
129 -module-unload) 218 -module-unload)
130 modules=$(enlightenment_remote -module-list|grep REPLY:|awk '{print $2}') 219 modules=$(enlightenment_remote -module-list|grep REPLY:|awk '{print $2}')
131 COMPREPLY=($(compgen -W "${modules}" -- "${cur}")) 220 COMPREPLY=($(compgen -W "${modules}" -- "${cur}"))
132 return 0 221 return 0
133 ;; 222 ;;
223 -theme-get|-theme-remove)
224 COMPREPLY=($(compgen -W "${THEME_CATEGORIES}" -- "${cur}"))
225 return 0
226 ;;
227 -theme-set)
228 if [[ ${COMP_CWORD} -eq 2 ]]; then
229 COMPREPLY=($(compgen -W "${THEME_CATEGORIES}" -- "${cur}"))
230 elif [[ ${COMP_CWORD} -eq 3 ]]; then
231 # TODO Add filename expansion, and only match dirs and .edj files
232 COMPREPLY=()
233 fi
234 return 0
235 ;;
134 -window-placement-policy-set) 236 -window-placement-policy-set)
135 COMPREPLY=($(compgen -W "SMART CURSOR MANUAL" -- "${cur}")) 237 COMPREPLY=($(compgen -W "SMART CURSOR MANUAL" -- "${cur}"))
136 return 0 238 return 0