]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Add new options to completion files
authorPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 16 Dec 2021 09:36:28 +0000 (10:36 +0100)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 16 Dec 2021 09:36:28 +0000 (10:36 +0100)
contrib/bash_completion/autorandr
contrib/zsh_completion/_autorandr

index 03beabe9f2f87bdebe2e96f3f8e0bc8519dd24c1..904ef8035e557e34a20b381d6a3ccbe9872b1418 100644 (file)
@@ -10,7 +10,7 @@ _autorandr ()
        prev="${COMP_WORDS[COMP_CWORD-1]}"
 
        opts="-h -c -s -r -l -d"
-       lopts="--help --change --save --remove --load --default --force --fingerprint --config --dry-run"
+       lopts="--help --change --cycle --save --remove --load --list --default --force --fingerprint --config --dry-run"
 
        # find system-level autorandr dirs
        OIFS="$IFS"
index b6cacbb1d3ad42807d6e06e9ed175705d45af424..848f614aaaf646e594faac0ad7b9e31ee0a8d4a3 100644 (file)
@@ -28,11 +28,13 @@ _autorandr () {
        "($exclude)"{-r,--remove}"[remove profile]:profile:__autorandr_saved_profile" \
        --batch"[run autorandr for all users]" \
        --current"[list current active configurations]" \
+       --cycle"[cycle through all detected profiles]" \
        --config"[dump current xrandr setup]" \
        --debug"[enable verbose output]" \
        --dry-run"[don't change anything]" \
        --fingerprint"[fingerprint current hardware]" \
        --force"[force loading of a profile]" \
+       --list"[list all profiles]" \
        --skip-options"[skip xrandr options]:xrandr options:_values -s , options gamma brightness panning transform primary mode pos rate" \
        --version"[show version]"
 }