Skip to content

Commit 14ecba5

Browse files
committed
Update completions
1 parent 9e5aaf0 commit 14ecba5

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

completions/_dunstctl.zshcomp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#compdef _dunstctl dunstctl
22

3-
# ZSH arguments completion script for the dunstctl commnd
3+
# ZSH arguments completion script for the dunstctl command
44
# Depends on: gAWK (rule), jq (history-pop)
55

66
local curcontext="$curcontext" ret=1
@@ -17,20 +17,20 @@ case $state in
1717
local -a commands
1818
commands=(
1919
'action:Perform the default action, or open the context menu of the notification at the given position'
20-
'close:Close the last notification'
21-
'close-all:Close the all notifications'
20+
'close:Close the last notification or optionally the notification with given ID'
21+
'close-all:Close all the notifications'
2222
'context:Open context menu'
2323
'count:Show the number of notifications'
2424
'history:Display notification history (in JSON)'
25-
'history-pop:Pop the latest notification from history or optionally the notification with given ID.'
26-
'is-paused:Check if dunst is running or paused'
25+
'history-pop:Pop the latest notification from history or optionally the notification with given ID'
26+
'is-paused:Check if pause level is greater than 0'
2727
'set-paused:Set the pause status'
28-
'get-pause-level:Get current dunst's pause level'
29-
'set-pause-level:Set current dunst's pause level'
28+
'get-pause-level:Get the current pause level'
29+
'set-pause-level:Set the pause level'
3030
'rule:Enable or disable a rule by its name'
3131
'rules:Displays configured rules'
3232
'debug:Print debugging information'
33-
'help:Show this help'
33+
'help:Show help'
3434
)
3535
_describe commands commands && ret=0
3636
;;

completions/dunstctl.bashcomp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _dunstctl() {
22
local opts cur prev
33
_get_comp_words_by_ref cur prev
44
COMPREPLY=()
5-
opts='action close close-all context count debug help history history-clear history-pop history-rm is-paused rule rules set-paused'
5+
opts='action close close-all context count debug help history history-clear history-pop history-rm is-paused rule rules set-paused get-pause-level set-pause-level'
66

77
case "$prev" in
88
count) COMPREPLY=( $( compgen -W 'displayed history waiting' -- "$cur" ) )

completions/dunstctl.fishcomp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,25 @@ end
1414

1515
# commands
1616
complete -c dunstctl -f -n __fish_use_subcommand -a action -d 'Perform the default action, or open the context menu of the notification at the given position'
17-
complete -c dunstctl -f -n __fish_use_subcommand -a close -d 'Close the last notification'
18-
complete -c dunstctl -f -n __fish_use_subcommand -a close-all -d 'Close the all notifications'
17+
complete -c dunstctl -f -n __fish_use_subcommand -a close -d 'Close the last notification or optionally the notification with given ID'
18+
complete -c dunstctl -f -n __fish_use_subcommand -a close-all -d 'Close all the notifications'
1919
complete -c dunstctl -f -n __fish_use_subcommand -a context -d 'Open context menu'
2020
complete -c dunstctl -f -n __fish_use_subcommand -a count -d 'Show the number of notifications'
2121
complete -c dunstctl -f -n __fish_use_subcommand -a history -d 'Display notification history (in JSON)'
2222
complete -c dunstctl -f -n __fish_use_subcommand -a history-clear -d 'Delete all notifications from history'
2323
complete -c dunstctl -f -n __fish_use_subcommand -a history-pop -d 'Pop the latest notification from history or optionally the notification with given ID'
2424
complete -c dunstctl -f -n __fish_use_subcommand -a history-rm -d 'Remove the notification from history with given ID'
25-
complete -c dunstctl -f -n __fish_use_subcommand -a is-paused -d 'Check if dunst is running or paused'
25+
complete -c dunstctl -f -n __fish_use_subcommand -a is-paused -d 'Check if pause level is greater than 0'
2626
complete -c dunstctl -f -n __fish_use_subcommand -a set-paused -d 'Set the pause status'
27+
complete -c dunstctl -f -n __fish_use_subcommand -a get-pause-level -d 'Get the current pause level'
28+
complete -c dunstctl -f -n __fish_use_subcommand -a set-pause-level -d 'Set the pause level'
2729
complete -c dunstctl -f -n __fish_use_subcommand -a rules -d 'Displays configured rules (optionally in JSON)'
2830
complete -c dunstctl -f -n __fish_use_subcommand -a rule -d 'Enable or disable a rule by its name'
2931
complete -c dunstctl -f -n __fish_use_subcommand -a debug -d 'Print debugging information'
30-
complete -c dunstctl -f -n __fish_use_subcommand -a help -d 'Show this help'
32+
complete -c dunstctl -f -n __fish_use_subcommand -a help -d 'Show help'
3133

3234
# command specific arguments
33-
complete -c dunstctl -x -n '__fish_seen_subcommand_from action close close-all context history history-clear is-paused debug help'
35+
complete -c dunstctl -x -n '__fish_seen_subcommand_from action close close-all context history history-clear is-paused get-pause-level set-pause-level debug help'
3436
complete -c dunstctl -x -n '__fish_seen_subcommand_from count' -a 'displayed history waiting'
3537
complete -c dunstctl -x -n '__fish_seen_subcommand_from history-pop history-rm' -a '(__fish_dunstctl_info history id appname)'
3638
complete -c dunstctl -x -n '__fish_seen_subcommand_from set-paused' -a 'true false toggle'

docs/dunstctl.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can optionally pass an ID to close the matching notification (if present).
2424

2525
=item B<close-all>
2626

27-
Close all notifications currently being displayed
27+
Close all notifications currently being displayed.
2828

2929
=item B<context>
3030

dunstctl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ show_help() {
2020
given position
2121
close [ID] Close the last notification or the
2222
notification with given ID.
23-
close-all Close the all notifications
23+
close-all Close all the notifications
2424
context Open context menu
2525
count [displayed|history|waiting] Show the number of notifications
2626
history Display notification history (in JSON)
2727
history-clear Delete all notifications from history
2828
history-pop [ID] Pop the latest notification from
2929
history or optionally the
30-
notification with given ID.
30+
notification with given ID
3131
history-rm ID Remove the notification from
3232
history with given ID.
33-
is-paused Check if pause level is > 0
33+
is-paused Check if pause level is greater than 0
3434
set-paused true|false|toggle Set the pause status
3535
get-pause-level Get the current pause level
3636
set-pause-level level Set the pause level
3737
rule name enable|disable|toggle Enable or disable a rule by its name
3838
rules [--json] Displays configured rules (optionally
3939
in JSON)
4040
debug Print debugging information
41-
help Show this help
41+
help Show help
4242
EOH
4343
}
4444
dbus_send_checked() {

0 commit comments

Comments
 (0)