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