22dc13b6bbd5006bac835a895ed86574bd2b544a
[grml-x.git] / usr_share_grml / zsh / completion / grml / _grml-x
1 #compdef grml-x
2 # Filename:      /usr/share/grml/zsh/completion/grml/_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 ################################################################################
8
9 local arguments wm
10 local -a wms
11
12 wms=()
13
14 for wm in awesome blackbox dwm evilwm fluxbox fvwm fvwm2 fvwm-crystal     \
15           gnome-session gnomesession icewm ion2 ion3 jwm larswm lxsession \
16           openbox particleman pekwm pwm3 ratpoison startkde twm w9wm      \
17           windowlab wmi wmii wm-ng xfce4 xfce4-session xfwm4 xmonad       \
18           x-window-manager ; do
19     [[ -x /usr/bin/$wm ]] && wms+=$wm
20 done
21
22 arguments=(
23   '-composite[enable composite extension (disabled by default)]'
24   '-display[display for xserver]:display:(7 8)'
25   '-fallback[use xorg.conf.example to get X running when it won'\''t start otherwise]'
26   '-force[force (re-)creation of xorg.conf file]'
27   '-help[display help]:'
28   '-genmouse[generate generic entry for mouse using /dev/input/mice and auto protocol]'
29   '-hsync[horizontal sync frequencies (<number>)]:hsync frequencies:(28 `seq 30 5 95` 96)'
30   '-mode[resolution-mode for xserver (<width>x<height> - e.g. 1024x768)]:resolutions:(1920x1440 1600x1200 1400x1050 1280x1024 1280x960 1024x768 800x600 640x480)'
31   '-module[module for xserver]:modules:(`cd /usr/lib/xorg/modules/drivers/ && /bin/ls *.so | sed -e 's/_drv.so//' -e 's/.so//'`)'
32   '-nodpms[disable Display Power Management Signaling]'
33   '-noddc[use static resolution modes for monitors without support for ddc probing]'
34   '-nohsync[do not activate HorizSync-entry]'
35   '-nostart[do not start X server]'
36   '-nosynaptics[use a synaptics touchpad without synaptics driver/functions]'
37   '-nosync[do not use static horizontal and vertical sync frequencies but let it choose the X-server]'
38   '-novref[do not activate VertRefresh-entry]'
39   '-ps2[add entry for PS/2 mouse]'
40   '-usb[add entry for USB mouse]'
41   '-vsync[vertical sync frequencies (<number>)]:vsync frequencies:(43 `seq 45 5 70` 72)'
42   '-xinerama[try to set up multihead using Xinerama setup]'
43   ':window manager:($wms)'
44 )
45 _arguments -s $arguments
46
47 ## END OF FILE #################################################################
48 # vim:foldmethod=marker