aboutsummaryrefslogtreecommitdiff
path: root/completions/bash/swaymsg
diff options
context:
space:
mode:
authorPeter Grayson <pete@jpgrayson.net>2019-03-08 12:43:04 -0500
committerDrew DeVault <sir@cmpwn.com>2019-03-11 10:56:20 -0400
commitbedf2ac2fbd24b8b2be9eb5a9f2dbf315a7dd7a3 (patch)
tree786586b3960f3d51f1f2c89600072351be3435f6 /completions/bash/swaymsg
parentc8085038cffb1dc1ba65d3746ec321f314f42567 (diff)
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/swaymsg2
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()
short=(
-h
+ -p
-q
-r
-s
@@ -30,6 +31,7 @@ _swaymsg()
long=(
--help
+ --pretty
--quiet
--raw
--socket