about summary refs log tree commit diff
path: root/Completion/User/_xsetroot
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-27 13:43:43 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-27 13:43:43 +0000
commitdf7d6b3e439c7401e1e1c8ab76a603f001402ea3 (patch)
tree9dff2c8698df9a59a8624cb05356b98add14fbc4 /Completion/User/_xsetroot
parentbd29ea48ec58524eee4c2cf9409cde340389488c (diff)
downloadzsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.tar.gz
zsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.tar.xz
zsh-df7d6b3e439c7401e1e1c8ab76a603f001402ea3.zip
zsh-workers/7517
Diffstat (limited to 'Completion/User/_xsetroot')
-rw-r--r--Completion/User/_xsetroot34
1 files changed, 14 insertions, 20 deletions
diff --git a/Completion/User/_xsetroot b/Completion/User/_xsetroot
index adce06d08..c3440a8ee 100644
--- a/Completion/User/_xsetroot
+++ b/Completion/User/_xsetroot
@@ -1,22 +1,16 @@
 #compdef xsetroot
 
-local expl
-
-case "$words[CURRENT-1]" in
--cursor_name) _cursors; return;;
--([fb]g|solid)) _colors; return;;
--cursor) _description expl 'cursor file'
-         _files "$expl[@]" -/g '*.(#i)(xbm|curs(|or))'; return;;
--bitmap) _description expl 'bitmap file'
-         _files "$expl[@]" -/g '*.(#i)xbm'; return;;
-esac
-
-if [[ CURRENT -gt 2 && "$words[CURRENT-2]" = -cursor ]]; then
-  _description expl 'cursor mask file'
-  _files "$expl[@]" -/g '*.(#i)(xbm|curs(|or)|mask)'
-else
-  _description expl option
-  compadd "$expl[@]" -M 'm:-=_ r:|_=*' - \
-          -help -def -cursor -cursor_name -bitmap -mod -gray -grey \
-          -fg -bg -rv -solid -name
-fi
+_x_options \
+  '-help' \
+  '-def' \
+  '-cursor:cursor file:_files -g \*.\(\#i\)\(xbm\|curs\(\|or\)\):mask file:_files -g \*.\(\#i\)\(xbm\|curs\(\|or\)\|mask\)' \
+  '-cursor_name:cursor name:_cursors' \
+  '-bitmap:bitmap file:_files -g \*.\(\#i\)xbm' \
+  '-mod:x grid distance (1-16): :y grid distance (1-16):' \
+  '-gray' \
+  '-grey' \
+  '-fg:foreground color:_colors' \
+  '-bg:background color:_colors' \
+  '-rv' \
+  '-solid:screen solid color:_colors' \
+  '-name:root window name:'