From 842c49b44e365147184cd27580a7118be3407653 Mon Sep 17 00:00:00 2001 From: Mark Gallagher Date: Thu, 14 Jan 2021 19:15:21 +0000 Subject: [PATCH] contrib/wrapper.pl: make it possible to chain multiple wrappers --- contrib/wrapper.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/wrapper.pl b/contrib/wrapper.pl index 78381328..26e1a1f1 100755 --- a/contrib/wrapper.pl +++ b/contrib/wrapper.pl @@ -9,6 +9,9 @@ # Then, in your ~/.i3/config, use: # status_command i3status | ~/i3status/contrib/wrapper.pl # In the 'bar' section. +# You can also chain multiple wrappers: +# status_command i3status | ~/i3/example.pl | ~/i3status/contrib/wrapper.pl + use strict; use warnings; @@ -39,5 +42,5 @@ }, @blocks); # Output the line as JSON. - print encode_json(\@blocks) . ",\n"; + print encode_json(\@blocks) . "\n,"; }