/etc/zsh/completion.d/_grml-x: support openbox
[grml-x.git] / etc / zsh / completion.d / _grml-x
1 #compdef grml-x
2 # Filename:      /etc/zsh/completion.d/grml-x
3 # Purpose:       completion for command grml-x for zsh (z shell)
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 # Latest change: Die Jul 10 16:31:47 CEST 2007 [mika]
8 ################################################################################
9
10 local arguments wm
11 local -a wms
12
13 wms=()
14
15 for wm in blackbox dwm evilwm fluxbox fvwm fvwm2 fvwm-crystal gnome-session  \
16           gnomesession icewm ion2 ion3 jwm openbox pekwm pwm3 ratpoison      \
17           startkde twm w9wm windowlab wmi wmii wm-ng xfce4 xfwm4 ; do
18   [ -x /usr/bin/$wm ] && wms+=$wm
19 done
20
21 arguments=(
22   '-display:display for xserver:(7 8)'
23   '-force[force creation of xconfig file]'
24   '-help:[display help]'
25   '-genmouse[generate generic entry for mouse using /dev/input/mice and auto protocol]'
26   '-hsync:horizontal sync frequencies (<number>):(28 `seq 30 5 95` 96)'
27   '-mode:resolution-mode for xserver (<width>x<height> - e.g. 1024x768)]:(1920x1440 1600x1200 1400x1050 1280x1024 1280x960 1024x768 800x600 640x480)'
28   '-module:module for xserver :(`cd /usr/lib/xorg/modules/drivers/ && /bin/ls *.so | sed -e 's/_drv.so//' -e 's/.so//'`)'
29   '-nodpms[disable Display Power Management Signaling]'
30   '-noddc[use static resolution modes for monitors without support for ddc probing]'
31   '-nohsync[do not activate HorizSync-entry]'
32   '-nostart[do not start X server]'
33   '-nosynaptics[use a synaptics touchpad without synaptics driver/functions]'
34   '-nosync[do not use static horizontal and vertical sync frequencies but let it choose the X-server]'
35   '-novref[do not activate VertRefresh-entry]'
36   '-ps2[add entry for PS/2 mouse]'
37   '-usb[add entry for USB mouse]'
38   '-vsync:vertical sync frequencies (<number>):(43 `seq 45 5 70` 72)'
39   ':window manager:($wms)'
40 )
41 _arguments -s $arguments
42
43 ## END OF FILE #################################################################
44 # vim:foldmethod=marker