45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
#compdef dzen2
|
|
|
|
# ------------------------------------------------------------------------------
|
|
# Description
|
|
# -----------
|
|
#
|
|
# Completion script for dzen2 0.8.5 ( https://github.com/robm/dzen )
|
|
# Last updated: 31.03.2013
|
|
#
|
|
# ------------------------------------------------------------------------------
|
|
# Authors
|
|
# -------
|
|
#
|
|
# * Valodim ( https://github.com/Valodim )
|
|
#
|
|
# ------------------------------------------------------------------------------
|
|
# Notes
|
|
# -----
|
|
#
|
|
# the _x_color completer has rather outdated paths, a zstyle like this helps
|
|
# get the x colors right (the list is rather long, then)
|
|
#
|
|
# zstyle ":completion:*:colors" path '/etc/X11/rgb.txt'
|
|
#
|
|
# ------------------------------------------------------------------------------
|
|
|
|
_arguments \
|
|
'-fg[Set foreground color]:foreground color:_x_color' \
|
|
'-bg[Set background color]:background color:_x_color' \
|
|
'-fn[Set font]:font:_x_font' \
|
|
'-ta[Set alignement of title window content]:alignment:( l c r )' \
|
|
'-tw[Set title window width]:width (pixels)' \
|
|
'-sa[Set alignment of slave window]:alignment:( l c r )' \
|
|
'-l[Number of lines to display in slave window]:lines' \
|
|
'-e[Set up events and actions]:event string' \
|
|
'-m[Start up in menu mode]' \
|
|
'-u[Update contents of title and slave window simultaneously]' \
|
|
'-p[Persist EOF]:timeout (seconds)' \
|
|
'-x[Set x position on the screen]:x position (pixels)' \
|
|
'-y[Set y position on the screen]:y position (pixels)' \
|
|
'-h[Set line height]:line height (pixels)' \
|
|
'-w[Set window width]:width (pixels)' \
|
|
'-xs[Set the Xinerama screen number where dzen should appear]:screen number' \
|
|
'-v[Display version information]' && return 0
|