diff options
author | 2019-03-08 12:43:04 -0500 | |
---|---|---|
committer | 2019-03-11 10:56:20 -0400 | |
commit | bedf2ac2fbd24b8b2be9eb5a9f2dbf315a7dd7a3 (patch) | |
tree | 786586b3960f3d51f1f2c89600072351be3435f6 /completions/bash/swaymsg | |
parent | ipc: describe libinput device configuration (diff) | |
download | sway-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/bash/swaymsg')
-rw-r--r-- | completions/bash/swaymsg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/completions/bash/swaymsg b/completions/bash/swaymsg index 20092bdc..0b011902 100644 --- a/completions/bash/swaymsg +++ b/completions/bash/swaymsg | |||
@@ -21,6 +21,7 @@ _swaymsg() | |||
21 | 21 | ||
22 | short=( | 22 | short=( |
23 | -h | 23 | -h |
24 | -p | ||
24 | -q | 25 | -q |
25 | -r | 26 | -r |
26 | -s | 27 | -s |
@@ -30,6 +31,7 @@ _swaymsg() | |||
30 | 31 | ||
31 | long=( | 32 | long=( |
32 | --help | 33 | --help |
34 | --pretty | ||
33 | --quiet | 35 | --quiet |
34 | --raw | 36 | --raw |
35 | --socket | 37 | --socket |