Add client flags to turn dnd on/off (#169)
This commit is contained in:

committed by
GitHub

parent
b65a08bb27
commit
81fb57ecb7
@@ -12,6 +12,8 @@ _swaync-client() {
|
||||
-cp
|
||||
-d
|
||||
-D
|
||||
-dn
|
||||
-df
|
||||
-c
|
||||
-C
|
||||
-sw
|
||||
@@ -29,6 +31,8 @@ _swaync-client() {
|
||||
--close-panel
|
||||
--toggle-dnd
|
||||
--get-dnd
|
||||
--dnd-on
|
||||
--dnd-off
|
||||
--count
|
||||
--hide-latest
|
||||
--close-latest
|
||||
|
@@ -8,6 +8,8 @@ complete -c swaync-client -s op -l open-panel --description "Opens the notificai
|
||||
complete -c swaync-client -s cp -l close-panel --description "Closes the notificaion panel" -r
|
||||
complete -c swaync-client -s d -l toggle-dnd --description "Toggle and print the current dnd state" -r
|
||||
complete -c swaync-client -s D -l get-dnd --description "Print the current dnd state" -r
|
||||
complete -c swaync-client -s dn -l dnd-on --description "Turn dnd on and print the new dnd state" -r
|
||||
complete -c swaync-client -s df -l dnd-off --description "Turn dnd off and print the new dnd state" -r
|
||||
complete -c swaync-client -s c -l count --description "Print the current notificaion count" -r
|
||||
complete -c swaync-client -l hide-latest --description "Hides latest notification. Still shown in Control Center" -r
|
||||
complete -c swaync-client -l close-latest --description "Closes latest notification" -r
|
||||
|
@@ -10,6 +10,8 @@ _arguments -s \
|
||||
'(-cp --close-panel)'{-cp,--close-panel}'[Closes the notificaion panel]' \
|
||||
'(-d --toggle-dnd)'{-d,--toggle-dnd}'[Toggle and print the current dnd state]' \
|
||||
'(-D --get-dnd)'{-D,--get-dnd}'[Print the current dnd state]' \
|
||||
'(-dn --dnd-on)'{-dn,--dnd-on}'[Turn dnd on and print the new dnd state]' \
|
||||
'(-df --dnd-off)'{-df,--dnd-off}'[Turn dnd off and print the new dnd state]' \
|
||||
'(-c --count)'{-c,--count}'[Print the current notificaion count]' \
|
||||
'(--hide-latest)'--hide-latest'[Closes all notifications]' \
|
||||
'(--close-latest)'--close-latest'[Hides latest notification. Still shown in Control Center]' \
|
||||
|
Reference in New Issue
Block a user