diff options
author | Lincoln Yuji de Oliveira <[email protected]> | 2024-07-04 08:21:07 -0300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-04 14:21:07 +0300 |
commit | 0a6e83005f1910b5c1ec78476fcffc05af47833a (patch) | |
tree | 6bc6a6877e121ef4ab05f63f08c49a4bfa3a90b8 | |
parent | e894d5e964994e988ef75de4d95e98c9503235e1 (diff) | |
download | Hyprland-0a6e83005f1910b5c1ec78476fcffc05af47833a.tar.gz Hyprland-0a6e83005f1910b5c1ec78476fcffc05af47833a.zip |
Completions: use only awk (#6763)
-rw-r--r-- | hyprctl/hyprctl.usage | 6 | ||||
-rw-r--r-- | hyprpm/hyprpm.bash | 2 | ||||
-rw-r--r-- | hyprpm/hyprpm.fish | 2 | ||||
-rw-r--r-- | hyprpm/hyprpm.usage | 2 | ||||
-rw-r--r-- | hyprpm/hyprpm.zsh | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/hyprctl/hyprctl.usage b/hyprctl/hyprctl.usage index 64cbbb80..298d253e 100644 --- a/hyprctl/hyprctl.usage +++ b/hyprctl/hyprctl.usage @@ -11,11 +11,11 @@ hyprctl [<OPTIONS>]... <ARGUMENTS> | (-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}' }}}; diff --git a/hyprpm/hyprpm.bash b/hyprpm/hyprpm.bash index 6989f7c1..ffc33e19 100644 --- a/hyprpm/hyprpm.bash +++ b/hyprpm/hyprpm.bash @@ -1,5 +1,5 @@ _hyprpm_cmd_0 () { - hyprpm list | grep Plugin | awk '{print $4}' + hyprpm list | awk '/Plugin/{print $4}' } _hyprpm () { diff --git a/hyprpm/hyprpm.fish b/hyprpm/hyprpm.fish index 81a1c59e..7be4f224 100644 --- a/hyprpm/hyprpm.fish +++ b/hyprpm/hyprpm.fish @@ -1,6 +1,6 @@ function _hyprpm_1 set 1 $argv[1] - hyprpm list | grep Plugin | awk '{print $4}' + hyprpm list | awk '/Plugin/{print $4}' end function _hyprpm diff --git a/hyprpm/hyprpm.usage b/hyprpm/hyprpm.usage index f321faf6..369c9d2b 100644 --- a/hyprpm/hyprpm.usage +++ b/hyprpm/hyprpm.usage @@ -16,4 +16,4 @@ hyprpm [<FLAGS>]... <ARGUMENT> | (reload) "Reload all plugins" ; -<PLUGINS> ::= {{{ hyprpm list | grep Plugin | awk '{print $4}' }}}; +<PLUGINS> ::= {{{ hyprpm list | awk '/Plugin/{print $4}' }}}; diff --git a/hyprpm/hyprpm.zsh b/hyprpm/hyprpm.zsh index e355a1fa..854e8426 100644 --- a/hyprpm/hyprpm.zsh +++ b/hyprpm/hyprpm.zsh @@ -1,7 +1,7 @@ #compdef hyprpm _hyprpm_cmd_0 () { - hyprpm list | grep Plugin | awk '{print $4}' + hyprpm list | awk '/Plugin/{print $4}' } _hyprpm () { |