add socket path parameter to i3-wsbar script

fixes http://i3.zekjur.net/bugs/ticket/210
next
Jan-Erik Rediger 2010-04-11 21:00:57 +02:00 committed by Michael Stapelberg
parent 28a8df684f
commit 58da674def
1 changed files with 4 additions and 1 deletions

View File

@ -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);