i3ipc-d 0.0.1

D library for communicating with the i3 window manager


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

i3ipc-d

i3ipc-d provides a high-level D API to the window manager i3's interprocess communication interface.

See here for the examples, one of which is this:

module threaded;

import core.time : seconds;
import core.thread : Thread, dur;

import std.stdio : writeln;

import i3ipc;

void main(string[] args)
{
	auto c = i3ipc.connect!Thread;

	c.subscribe!"Workspace"((change, current, old) => writeln(change, " ", current, " ", old));

	writeln("Connection open for approximately 3 seconds, please generate some i3 workspace events!");
	/+ A thread-backed connection automatically dispatches events,
	 + this just delays program termination.
	 +/
	Thread.sleep(3.seconds);
}
Authors:
  • Moritz Maxeiner
Dependencies:
none
Versions:
0.0.1 2016-Mar-29
~master 2016-May-31
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 55 downloads total

Score:
1.0
Short URL:
i3ipc-d.dub.pm