xrandr --mode: Clean up one awk call.
This commit is contained in:
parent
225b395b49
commit
1e6a79196c
@ -21,7 +21,8 @@ _xrandr()
|
||||
done
|
||||
if [[ $output ]]; then
|
||||
local modes=$( xrandr | sed -e "1,/$output/ d" \
|
||||
-e "/connected/,$ d" | awk '{print $1}' )
|
||||
-e "/connected/,$ d" \
|
||||
-e "s/\([^[:space:]]\)[[:space:]].*/\1/" )
|
||||
COMPREPLY=( $( compgen -W "$modes" -- "$cur" ) )
|
||||
fi
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user