From 7ed14117b6a43439b9515599928b223d7a0d4f68 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 17 Apr 2007 09:19:55 +0200 Subject: [PATCH] Updated zsh completion for grml-x. Thanks, ft! --- debian/changelog | 6 ++++++ debian/control | 2 +- etc/zsh/completion.d/_grml-x | 45 ++++++++++++++++++++++++++++++++++++++++++++ etc/zsh/completion.d/grml-x | 45 -------------------------------------------- 4 files changed, 52 insertions(+), 46 deletions(-) create mode 100644 etc/zsh/completion.d/_grml-x delete mode 100644 etc/zsh/completion.d/grml-x diff --git a/debian/changelog b/debian/changelog index 3825ff2..ef5f26e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-x (0.3.22) unstable; urgency=low + + * Updated zsh completion for grml-x. Thanks, ft! + + -- Michael Prokop Tue, 17 Apr 2007 09:15:38 +0200 + grml-x (0.3.21) unstable; urgency=low * Big rewrite of grml-x: heavy use of evdev. Thanks for idea diff --git a/debian/control b/debian/control index 7f48199..bd00e68 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Standards-Version: 3.7.2 Package: grml-x Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, xserver-xorg | xserver, hwinfo, grml-etc (>= 0.5-20), zsh, pciutils, sudo, xbase-clients +Depends: ${shlibs:Depends}, ${misc:Depends}, xserver-xorg | xserver, hwinfo, grml-etc (>= 0.5-20), grml-etc-core (>= 0.2.46) zsh, pciutils, sudo, xbase-clients Recommends: fluxbox | x-window-manager, xterm | x-terminal-emulator, xfonts-base, xserver-xorg-input-vmmouse, xcursor-themes Suggests: xfonts-100dpi, xfonts-75dpi, fonts-ttf-west-european, xfonts-base-transcoded Conflicts: grml-scripts (<= 0.4-4) diff --git a/etc/zsh/completion.d/_grml-x b/etc/zsh/completion.d/_grml-x new file mode 100644 index 0000000..f38edff --- /dev/null +++ b/etc/zsh/completion.d/_grml-x @@ -0,0 +1,45 @@ +#compdef grml-x +# Filename: /etc/zsh/completion.d/grml-x +# Purpose: completion for command grml-x for zsh (z shell) +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2. +# Latest change: Tue Apr 17 01:53:45 CEST 2007 [ft] +################################################################################ + +local arguments wm +local -a wms + +wms=() + +for wm in blackbox dwm evilwm fluxbox fvwm fvwm2 fvwm-crystal gnome-session \ + gnomesession icewm ion2 ion3 jwm pekwm pwm3 ratpoison startkde twm \ + w9wm windowlab wmi wmii wm-ng xfce4 xfwm4 ; do + [ -x /usr/bin/$wm ] && wms+=$wm +done + +arguments=( + '-display:display for xserver:(7 8)' + '-force[force creation of xconfig file]' + '-help:[display help]' + '-genmouse[generate generic entry for mouse using /dev/input/mice and auto protocol]' + '-hsync:horizontal sync frequencies ():(28 `seq 30 5 95` 96)' + '-mode:resolution-mode for xserver (x - e.g. 1024x768)]:(1920x1440 1600x1200 1400x1050 1280x1024 1280x960 1024x768 800x600 640x480)' + '-module:module for xserver :(`cd /usr/lib/xorg/modules/drivers/ && /bin/ls *.so | sed -e 's/_drv.so//' -e 's/.so//'`)' + '-nodpms[disable Display Power Management Signaling]' + '-noddc[use static resolution modes for monitors without support for ddc probing]' + '-nohsync[do not activate HorizSync-entry]' + '-nostart[do not start X server]' + '-nosynaptics[use a synaptics touchpad without synaptics driver/functions]' + '-nosync[do not use static horizontal and vertical sync frequencies but let it choose the X-server]' + '-novref[do not activate VertRefresh-entry]' + '-ps2[add entry for PS/2 mouse]' + '-usb[add entry for USB mouse]' + '-vsync:vertical sync frequencies ():(43 `seq 45 5 70` 72)' + '-xserver:xserver used for creation of xconfig file:(XFree86 X.org)' + ':window manager:($wms)' +) +_arguments -s $arguments + +## END OF FILE ################################################################# +# vim:foldmethod=marker diff --git a/etc/zsh/completion.d/grml-x b/etc/zsh/completion.d/grml-x deleted file mode 100644 index 0bf58a5..0000000 --- a/etc/zsh/completion.d/grml-x +++ /dev/null @@ -1,45 +0,0 @@ -# Filename: /etc/zsh/completion.d/grml-x -# Purpose: completion for command grml-x for zsh (z shell) -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -# Latest change: Sam Aug 12 10:26:16 CEST 2006 [mika] -################################################################################ - -# compdef _grml-x grml-x - - for wm in blackbox dwm evilwm fluxbox fvwm fvwm2 fvwm-crystal gnome-session \ - gnomesession icewm ion2 ion3 jwm pekwm pwm3 ratpoison startkde twm \ - w9wm windowlab wmi wmii wm-ng xfce4 xfwm4 ; do - [ -x /usr/bin/$wm ] && LIST="$LIST $wm" - done - - _grml-x() { local arguments wm - wm=(`echo $LIST`) - arguments=( - '-display:display for xserver:(7 8)' - '-force[force creation of xconfig file]' - '-help:[display help]' - '-genmouse[generate generic entry for mouse using /dev/input/mice and auto protocol]' - '-hsync:horizontal sync frequencies ():(28 `seq 30 5 95` 96)' - '-mode:resolution-mode for xserver (x - e.g. 1024x768)]:(1920x1440 1600x1200 1400x1050 1280x1024 1280x960 1024x768 800x600 640x480)' - '-module:module for xserver :(`cd /usr/lib/xorg/modules/drivers/ && /bin/ls *.so | sed -e 's/_drv.so//' -e 's/.so//'`)' - '-nodpms[disable Display Power Management Signaling]' - '-noddc[use static resolution modes for monitors without support for ddc probing]' - '-nohsync[do not activate HorizSync-entry]' - '-nops2[deactivate entry for PS/2 mouse]' - '-nostart[do not start X server]' - '-nosynaptics[use a synaptics touchpad without synaptics driver/functions]' - '-nosync[do not use static horizontal and vertical sync frequencies but let it choose the X-server]' - '-nousb[deactivate default entry for usb mouse (/dev/input/mice)]' - '-novref[do not activate VertRefresh-entry]' - '-vsync:vertical sync frequencies ():(43 `seq 45 5 70` 72)' - '-xserver:xserver used for creation of xconfig file:(XFree86 X.org)' - ':window manager:($wm)' - ) - _arguments -s $arguments - } - compdef _grml-x grml-x - -## END OF FILE ################################################################# -# vim:foldmethod=marker -- 2.1.4