summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/other/enlightenment_remote12
1 files changed, 9 insertions, 3 deletions
diff --git a/data/other/enlightenment_remote b/data/other/enlightenment_remote
index 90aad56d0..b1dc0b69b 100644
--- a/data/other/enlightenment_remote
+++ b/data/other/enlightenment_remote
@@ -25,7 +25,6 @@ _enlightenment_remote() {
25 CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY" 25 CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY"
26 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" 27 DIRS="data images fonts themes init icons modules backgrounds"
28 THEME_CATEGORIES="theme"
29 28
30 29
31 case "${action}" in 30 case "${action}" in
@@ -222,18 +221,25 @@ _enlightenment_remote() {
222 return 0 221 return 0
223 ;; 222 ;;
224 -theme-get|-theme-remove) 223 -theme-get|-theme-remove)
225 COMPREPLY=($(compgen -W "${THEME_CATEGORIES}" -- "${cur}")) 224 theme_categories=$(enlightenment_remote -theme-category-list|grep REPLY:|awk '{print $2}')
225 COMPREPLY=($(compgen -W "${theme_categories}" -- "${cur}"))
226 return 0 226 return 0
227 ;; 227 ;;
228 -theme-set) 228 -theme-set)
229 if [[ ${COMP_CWORD} -eq 2 ]]; then 229 if [[ ${COMP_CWORD} -eq 2 ]]; then
230 COMPREPLY=($(compgen -W "${THEME_CATEGORIES}" -- "${cur}")) 230 theme_categories=$(enlightenment_remote -theme-category-list|grep REPLY:|awk '{print $2}')
231 COMPREPLY=($(compgen -W "${theme_categories}" -- "${cur}"))
231 elif [[ ${COMP_CWORD} -eq 3 ]]; then 232 elif [[ ${COMP_CWORD} -eq 3 ]]; then
232 # TODO Add filename expansion, and only match dirs and .edj files 233 # TODO Add filename expansion, and only match dirs and .edj files
233 COMPREPLY=() 234 COMPREPLY=()
234 fi 235 fi
235 return 0 236 return 0
236 ;; 237 ;;
238 -transition-*-set)
239 transitions=$(enlightenment_remote -transition-list|grep REPLY:|awk '{print $2}')
240 COMPREPLY=($(compgen -W "${transitions}" -- "${cur}"))
241 return 0
242 ;;
237 -window-placement-policy-set) 243 -window-placement-policy-set)
238 COMPREPLY=($(compgen -W "SMART CURSOR MANUAL" -- "${cur}")) 244 COMPREPLY=($(compgen -W "SMART CURSOR MANUAL" -- "${cur}"))
239 return 0 245 return 0