use new default ipc-socket path, glob() path, bump version

This commit is contained in:
Michael Stapelberg 2010-03-27 14:54:30 +01:00
parent 5d1bb0b0ce
commit e656864838
1 changed files with 5 additions and 5 deletions

View File

@ -15,11 +15,11 @@ AnyEvent::I3 - communicate with the i3 window manager
=cut =cut
our $VERSION = '0.03'; our $VERSION = '0.04';
=head1 VERSION =head1 VERSION
Version 0.03 Version 0.04
=head1 SYNOPSIS =head1 SYNOPSIS
@ -29,7 +29,7 @@ then subscribe to events or send messages and receive their replies.
use AnyEvent::I3 qw(:all); use AnyEvent::I3 qw(:all);
my $i3 = i3("/tmp/i3-ipc.sock"); my $i3 = i3("~/.i3/ipc.sock");
$i3->connect->recv or die "Error connecting"; $i3->connect->recv or die "Error connecting";
say "Connected to i3"; say "Connected to i3";
@ -94,9 +94,9 @@ the UNIX socket to connect to.
sub new { sub new {
my ($class, $path) = @_; my ($class, $path) = @_;
$path ||= '/tmp/i3-ipc.sock'; $path ||= '~/.i3/ipc.sock';
bless { path => $path } => $class; bless { path => glob($path) } => $class;
} }
=head2 $i3->connect =head2 $i3->connect