5 use Text::Template 'fill_in_string';
10 $i3->connect->recv or die "Error connecting to i3";
12 my ($ev, $str) = @ARGV;
13 if (not defined $str) {
14 die "Error: Too few arguments\n" .
15 "Usage: $0 workspace|output|mode|window|barconfig_update|binding format_string\n" .
16 "Example: $0 window 'The window title is {\$name}'"
21 # XXX: there has to be a better way to do this
24 say Text::Template::fill_in_string($str, HASH=>$msg->{'container'});
30 # vim: et:ts=4:sts=4:sw=4