From 58da674defbcfdeda2be5216d680d0d2d5f03fd6 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sun, 11 Apr 2010 21:00:57 +0200 Subject: [PATCH] add socket path parameter to i3-wsbar script fixes http://i3.zekjur.net/bugs/ticket/210 --- i3-wsbar | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i3-wsbar b/i3-wsbar index b1a50c40..2f62edb4 100755 --- a/i3-wsbar +++ b/i3-wsbar @@ -12,7 +12,7 @@ use AnyEvent; use v5.10; my $stdin; -my $i3 = i3; +my $socket_path = undef; my ($workspaces, $outputs) = ([], {}); my $last_line = ""; @@ -23,6 +23,7 @@ my $show_all = 0; my $result = GetOptions( 'command=s' => \$command, + 'socket=s' => \$socket_path, 'input-on=s' => \$input_on, 'output-on=s' => \$output_on, 'show-all' => \$show_all, @@ -35,6 +36,8 @@ if ($command eq '') { exit 1; } +my $i3 = i3($socket_path); + my @input_on = split(/,/, $input_on); my @output_on = split(/,/, $output_on); -- 2.39.5