aboutsummaryrefslogtreecommitdiffstats
path: root/completions/zsh/_swaymsg
diff options
context:
space:
mode:
authorLibravatar Peter Grayson <pete@jpgrayson.net>2019-03-08 12:43:04 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-03-11 10:56:20 -0400
commitbedf2ac2fbd24b8b2be9eb5a9f2dbf315a7dd7a3 (patch)
tree786586b3960f3d51f1f2c89600072351be3435f6 /completions/zsh/_swaymsg
parentipc: describe libinput device configuration (diff)
downloadsway-bedf2ac2fbd24b8b2be9eb5a9f2dbf315a7dd7a3.tar.gz
sway-bedf2ac2fbd24b8b2be9eb5a9f2dbf315a7dd7a3.tar.zst
sway-bedf2ac2fbd24b8b2be9eb5a9f2dbf315a7dd7a3.zip
Add -p/--pretty option to swaymsg
This new option forces pretty (non-raw/non-JSON) output. By default, when not using a tty, swaymsg outputs using the "raw" format. This makes it impossible to, for example, pipe the pretty output to a pager such as `less` since piping does not use a tty. The new -p/--pretty option gives the user explicit control over the output format while retaining the default tty-dependent behavior. Signed-off-by: Peter Grayson <pete@jpgrayson.net>
Diffstat (limited to 'completions/zsh/_swaymsg')
-rw-r--r--completions/zsh/_swaymsg7
1 files changed, 4 insertions, 3 deletions
diff --git a/completions/zsh/_swaymsg b/completions/zsh/_swaymsg
index 0ba45d4a..c11fa990 100644
--- a/completions/zsh/_swaymsg
+++ b/completions/zsh/_swaymsg
@@ -28,10 +28,11 @@ types=(
28) 28)
29 29
30_arguments -s \ 30_arguments -s \
31 '(-v --version)'{-v,--version}'[Show the version number and quit]' \
32 '(-m --monitor)'{-m,--monitor}'[Monitor until killed (-t SUBSCRIBE only)]' \
33 '(-h --help)'{-h,--help}'[Show help message and quit]' \ 31 '(-h --help)'{-h,--help}'[Show help message and quit]' \
32 '(-m --monitor)'{-m,--monitor}'[Monitor until killed (-t SUBSCRIBE only)]' \
33 '(-p --pretty)'{-p,--pretty}'[Use pretty output even when not using a tty]' \
34 '(-q --quiet)'{-q,--quiet}'[Be quiet]' \ 34 '(-q --quiet)'{-q,--quiet}'[Be quiet]' \
35 '(-r --raw)'{-r,--raw}'[Use raw output even if using a tty]' \ 35 '(-r --raw)'{-r,--raw}'[Use raw output even if using a tty]' \
36 '(-s --socket)'{-s,--socket}'[Use the specified socket path]:files:_files' \ 36 '(-s --socket)'{-s,--socket}'[Use the specified socket path]:files:_files' \
37 '(-t --type)'{-t,--type}'[Specify the message type]:type:{_describe "type" types}' 37 '(-t --type)'{-t,--type}'[Specify the message type]:type:{_describe "type" types}' \
38 '(-v --version)'{-v,--version}'[Show the version number and quit]'