mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 07:26:00 +01:00
Completions: use only awk (#6763)
This commit is contained in:
parent
e894d5e964
commit
0a6e83005f
5 changed files with 7 additions and 7 deletions
|
@ -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}' }}};
|
||||||
|
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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}' }}};
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue