2001-06-28 13:22:55 +02:00
|
|
|
#compdef vncserver vncviewer xvncviewer
|
2001-04-26 16:00:45 +02:00
|
|
|
|
|
|
|
local displays args
|
2001-06-28 13:22:55 +02:00
|
|
|
displays=( ~/.vnc/$HOST:<->.pid(N:r:t:s/$HOST//) )
|
2001-04-26 16:00:45 +02:00
|
|
|
displays=( \\${^displays} )
|
|
|
|
|
|
|
|
case $service in
|
|
|
|
vncserver)
|
|
|
|
# currently lacking Xvnc arguments
|
|
|
|
_arguments \
|
|
|
|
- start \
|
|
|
|
'-name:desktop name:_x_name' \
|
|
|
|
'-geometry:geometry:(1600x1200 1280x1024 1152x864 1024x768 800x600 640x480)' \
|
|
|
|
'-depth:pixel depth:(8 16 24 32)' \
|
|
|
|
'-pixelformat:pixel format' \
|
2001-05-08 13:48:12 +02:00
|
|
|
'1::display number:_guard "(|:[0-9]#)"' \
|
2001-04-26 16:00:45 +02:00
|
|
|
- kill \
|
|
|
|
"-kill:display number:($displays)" \
|
|
|
|
- help \
|
|
|
|
'-help'
|
|
|
|
;;
|
2001-06-28 13:22:55 +02:00
|
|
|
*vncviewer)
|
2001-04-26 16:00:45 +02:00
|
|
|
_xt_arguments -shared -viewonly -fullscreen -bgr233 -owncmap -truecolour \
|
2001-06-28 13:22:55 +02:00
|
|
|
'-encodings:encodings:_values -s " " copyrect hextile corre rre raw' \
|
2001-04-26 16:00:45 +02:00
|
|
|
'-depth:depth' \
|
|
|
|
'-passwd:file:_files' \
|
|
|
|
'(1)-listen:display number' \
|
|
|
|
'(-listen)1::display:_x_display'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|