docs: update for new ipc socket path

This commit is contained in:
Michael Stapelberg 2010-03-27 15:22:28 +01:00
parent 8fb641cca4
commit e7b354e0dc
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ The method of choice for IPC in our case is a unix socket because it has very
little overhead on both sides and is usually available without headaches in little overhead on both sides and is usually available without headaches in
most languages. In the default configuration file, no ipc-socket path is most languages. In the default configuration file, no ipc-socket path is
specified and thus no socket is created. The standard path (which +i3-msg+ and specified and thus no socket is created. The standard path (which +i3-msg+ and
+i3-input+ use) is +/tmp/i3-ipc.sock+. +i3-input+ use) is +~/.i3/ipc.sock+.
== Establishing a connection == Establishing a connection
@ -21,7 +21,7 @@ snippet illustrates this in Perl:
------------------------------------------------------------- -------------------------------------------------------------
use IO::Socket::UNIX; use IO::Socket::UNIX;
my $sock = IO::Socket::UNIX->new(Peer => '/tmp/i3-ipc.sock'); my $sock = IO::Socket::UNIX->new(Peer => '~/.i3/ipc.sock');
------------------------------------------------------------- -------------------------------------------------------------
== Sending messages to i3 == Sending messages to i3

View File

@ -504,11 +504,11 @@ programs to get information from i3, such as the current workspaces
(to display a workspace bar), and to control i3. (to display a workspace bar), and to control i3.
To enable it, you have to configure a path where the unix socket will be To enable it, you have to configure a path where the unix socket will be
stored. The default path is +/tmp/i3-ipc.sock+. stored. The default path is +~/.i3/ipc.sock+.
*Examples*: *Examples*:
---------------------------- ----------------------------
ipc-socket /tmp/i3-ipc.sock ipc-socket ~/.i3/ipc.sock
---------------------------- ----------------------------
You can then use the +i3-msg+ application to perform any command listed in You can then use the +i3-msg+ application to perform any command listed in