summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Grayson <pete@jpgrayson.net>2019-03-08 14:39:35 -0500
committerDrew DeVault <sir@cmpwn.com>2019-03-11 10:56:20 -0400
commit7d8083c16a22a980a5667fdb35b852d3587726c3 (patch)
tree96c5e10ad55b16219e045ceebfe717a77a77a840
parentbedf2ac2fbd24b8b2be9eb5a9f2dbf315a7dd7a3 (diff)
Add missing swaymsg completions
The `-m/--monitor` option was missing from the bash and fish completions. The `subscribe` IPC message type was missing from the bash, fish, and zsh completions. Signed-off-by: Peter Grayson <pete@jpgrayson.net>
-rw-r--r--completions/bash/swaymsg3
-rw-r--r--completions/fish/swaymsg.fish2
-rw-r--r--completions/zsh/_swaymsg1
3 files changed, 6 insertions, 0 deletions
diff --git a/completions/bash/swaymsg b/completions/bash/swaymsg
index 0b0119029..a333c9124 100644
--- a/completions/bash/swaymsg
+++ b/completions/bash/swaymsg
@@ -17,10 +17,12 @@ _swaymsg()
'get_binding_modes'
'get_config'
'send_tick'
+ 'subscribe'
)
short=(
-h
+ -m
-p
-q
-r
@@ -31,6 +33,7 @@ _swaymsg()
long=(
--help
+ --monitor
--pretty
--quiet
--raw
diff --git a/completions/fish/swaymsg.fish b/completions/fish/swaymsg.fish
index 37a245132..677ffe976 100644
--- a/completions/fish/swaymsg.fish
+++ b/completions/fish/swaymsg.fish
@@ -1,6 +1,7 @@
# swaymsg(1) completion
complete -c swaymsg -s h -l help --description "Show help message and quit."
+complete -c swaymsg -s m -l monitor --description "Monitor subscribed events until killed."
complete -c swaymsg -s p -l pretty --description "Use pretty output even when not using a tty."
complete -c swaymsg -s q -l quiet --description "Sends the IPC message but does not print the response from sway."
complete -c swaymsg -s r -l raw --description "Use raw output even if using tty."
@@ -19,3 +20,4 @@ complete -c swaymsg -s t -l type -fra 'get_binding_modes' --description "Gets a
complete -c swaymsg -s t -l type -fra 'get_config' --description "Gets a JSON-encoded copy of the current configuration."
complete -c swaymsg -s t -l type -fra 'get_seats' --description "Gets a JSON-encoded list of all seats, its properties and all assigned devices."
complete -c swaymsg -s t -l type -fra 'send_tick' --description "Sends a tick event to all subscribed clients."
+complete -c swaymsg -s t -l type -fra 'subscribe' --description "Subscribe to a list of event types."
diff --git a/completions/zsh/_swaymsg b/completions/zsh/_swaymsg
index c11fa9905..3f42a77d7 100644
--- a/completions/zsh/_swaymsg
+++ b/completions/zsh/_swaymsg
@@ -25,6 +25,7 @@ types=(
'get_binding_modes'
'get_config'
'send_tick'
+'subscribe'
)
_arguments -s \