Completions: use only awk (#6763)

This commit is contained in:
Lincoln Yuji de Oliveira 2024-07-04 08:21:07 -03:00 committed by GitHub
parent e894d5e964
commit 0a6e83005f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 7 deletions

View file

@ -11,11 +11,11 @@ hyprctl [<OPTIONS>]... <ARGUMENTS>
| (-q | --quiet) "Disable output" | (-q | --quiet) "Disable output"
; ;
<WINDOWS> ::= {{{ hyprctl clients | grep class | awk '{print $2}' }}}; <WINDOWS> ::= {{{ hyprctl clients | awk '/class/{print $2}' }}};
<AVAILABLE_PLUGINS> ::= {{{ hyprpm list | grep "Plugin" | awk '{print $4}' }}}; <AVAILABLE_PLUGINS> ::= {{{ hyprpm list | awk '/Plugin/{print $4}' }}};
<MONITORS> ::= {{{ hyprctl monitors | grep Monitor | awk '{ print $2 }' }}}; <MONITORS> ::= {{{ hyprctl monitors | awk '/Monitor/{ print $2 }' }}};
<KEYBOARDS> ::= {{{ hyprctl devices | sed -n '/Keyboard at/{n; s/^\s\+//; p}' }}}; <KEYBOARDS> ::= {{{ hyprctl devices | sed -n '/Keyboard at/{n; s/^\s\+//; p}' }}};

View file

@ -1,5 +1,5 @@
_hyprpm_cmd_0 () { _hyprpm_cmd_0 () {
hyprpm list | grep Plugin | awk '{print $4}' hyprpm list | awk '/Plugin/{print $4}'
} }
_hyprpm () { _hyprpm () {

View file

@ -1,6 +1,6 @@
function _hyprpm_1 function _hyprpm_1
set 1 $argv[1] set 1 $argv[1]
hyprpm list | grep Plugin | awk '{print $4}' hyprpm list | awk '/Plugin/{print $4}'
end end
function _hyprpm function _hyprpm

View file

@ -16,4 +16,4 @@ hyprpm [<FLAGS>]... <ARGUMENT>
| (reload) "Reload all plugins" | (reload) "Reload all plugins"
; ;
<PLUGINS> ::= {{{ hyprpm list | grep Plugin | awk '{print $4}' }}}; <PLUGINS> ::= {{{ hyprpm list | awk '/Plugin/{print $4}' }}};

View file

@ -1,7 +1,7 @@
#compdef hyprpm #compdef hyprpm
_hyprpm_cmd_0 () { _hyprpm_cmd_0 () {
hyprpm list | grep Plugin | awk '{print $4}' hyprpm list | awk '/Plugin/{print $4}'
} }
_hyprpm () { _hyprpm () {