forked from enlightenment/enlightenment
parent
ebccd9d3e3
commit
33cb99ecd1
|
@ -25,7 +25,6 @@ _enlightenment_remote() {
|
||||||
CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY"
|
CONTEXT="NONE BORDER ZONE CONTAINER MANAGER MENU WINLIST POPUP ANY"
|
||||||
MODIFIERS="NONE SHIFT| SHIFT CONTROL| CONTROL ALT| ALT WIN| WIN"
|
MODIFIERS="NONE SHIFT| SHIFT CONTROL| CONTROL ALT| ALT WIN| WIN"
|
||||||
DIRS="data images fonts themes init icons modules backgrounds"
|
DIRS="data images fonts themes init icons modules backgrounds"
|
||||||
THEME_CATEGORIES="theme"
|
|
||||||
|
|
||||||
|
|
||||||
case "${action}" in
|
case "${action}" in
|
||||||
|
@ -222,18 +221,25 @@ _enlightenment_remote() {
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-theme-get|-theme-remove)
|
-theme-get|-theme-remove)
|
||||||
COMPREPLY=($(compgen -W "${THEME_CATEGORIES}" -- "${cur}"))
|
theme_categories=$(enlightenment_remote -theme-category-list|grep REPLY:|awk '{print $2}')
|
||||||
|
COMPREPLY=($(compgen -W "${theme_categories}" -- "${cur}"))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
-theme-set)
|
-theme-set)
|
||||||
if [[ ${COMP_CWORD} -eq 2 ]]; then
|
if [[ ${COMP_CWORD} -eq 2 ]]; then
|
||||||
COMPREPLY=($(compgen -W "${THEME_CATEGORIES}" -- "${cur}"))
|
theme_categories=$(enlightenment_remote -theme-category-list|grep REPLY:|awk '{print $2}')
|
||||||
|
COMPREPLY=($(compgen -W "${theme_categories}" -- "${cur}"))
|
||||||
elif [[ ${COMP_CWORD} -eq 3 ]]; then
|
elif [[ ${COMP_CWORD} -eq 3 ]]; then
|
||||||
# TODO Add filename expansion, and only match dirs and .edj files
|
# TODO Add filename expansion, and only match dirs and .edj files
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
-transition-*-set)
|
||||||
|
transitions=$(enlightenment_remote -transition-list|grep REPLY:|awk '{print $2}')
|
||||||
|
COMPREPLY=($(compgen -W "${transitions}" -- "${cur}"))
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
-window-placement-policy-set)
|
-window-placement-policy-set)
|
||||||
COMPREPLY=($(compgen -W "SMART CURSOR MANUAL" -- "${cur}"))
|
COMPREPLY=($(compgen -W "SMART CURSOR MANUAL" -- "${cur}"))
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue