mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-14 02:27:03 -07:00
Updated msys2 to msys2-base-x86_64-20200903
This commit is contained in:
parent
5bc8dbdc75
commit
2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions
|
@ -12,8 +12,8 @@ _xrandr()
|
|||
return
|
||||
;;
|
||||
--output|--left-of|--right-of|--above|--below|--same-as)
|
||||
local outputs=$( "$1" | awk '/connected/ {print $1}' )
|
||||
COMPREPLY=( $( compgen -W "$outputs" -- "$cur" ) )
|
||||
local outputs=$("$1" | awk '/connected/ {print $1}')
|
||||
COMPREPLY=( $(compgen -W "$outputs" -- "$cur") )
|
||||
return
|
||||
;;
|
||||
--mode)
|
||||
|
@ -25,37 +25,38 @@ _xrandr()
|
|||
fi
|
||||
done
|
||||
if [[ $output ]]; then
|
||||
local modes=$( "$1" | command sed -e "1,/$output/ d" \
|
||||
local modes=$("$1" | command sed -e "1,/^$output / d" \
|
||||
-e "/connected/,$ d" \
|
||||
-e "s/\([^[:space:]]\)[[:space:]].*/\1/" )
|
||||
COMPREPLY=( $( compgen -W "$modes" -- "$cur" ) )
|
||||
-e "s/\([^[:space:]]\)[[:space:]].*/\1/")
|
||||
COMPREPLY=( $(compgen -W "$modes" -- "$cur") )
|
||||
fi
|
||||
return
|
||||
;;
|
||||
-o|--orientation)
|
||||
COMPREPLY=( $( compgen -W 'normal inverted left right 0 1 2 3' -- \
|
||||
"$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'normal inverted left right 0 1 2 3' -- \
|
||||
"$cur") )
|
||||
return
|
||||
;;
|
||||
--reflect)
|
||||
COMPREPLY=( $( compgen -W 'normal x y xy' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'normal x y xy' -- "$cur") )
|
||||
return
|
||||
;;
|
||||
--rotate)
|
||||
COMPREPLY=( $( compgen -W 'normal inverted left right' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W 'normal inverted left right' -- "$cur") )
|
||||
return
|
||||
;;
|
||||
--setprovideroutputsource|--setprovideroffloadsink)
|
||||
local providers=$( "$1" --listproviders 2>/dev/null |
|
||||
command sed -ne 's/.* name:\([^ ]*\).*/\1/p' )
|
||||
COMPREPLY=( $( compgen -W "$providers" -- "$cur" ) )
|
||||
local providers=$("$1" --listproviders 2>/dev/null |
|
||||
command sed -ne 's/.* name:\([^ ]*\).*/\1/p')
|
||||
COMPREPLY=( $(compgen -W "$providers" -- "$cur") )
|
||||
# TODO 2nd arg needed, is that a provider as well?
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
COMPREPLY=( $( compgen -W '$( "$1" -help 2>&1 |
|
||||
command sed -e "s/ or / /g" -e "s/<[^>]*>]//g" | _parse_help - )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$("$1" -help 2>&1 |
|
||||
command sed -e "s/ or / /g" -e "s/<[^>]*>]//g" | _parse_help -)' \
|
||||
-- "$cur") )
|
||||
} &&
|
||||
complete -F _xrandr xrandr
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue