module I3

Overview

An interface for the i3 window manager's IPC server.

Defined in:

i3.cr
i3/connection.cr
i3/error.cr
i3/message.cr
i3/message/bar.cr
i3/message/config.cr
i3/message/event.cr
i3/message/output.cr
i3/message/rect.cr
i3/message/status.cr
i3/message/tree.cr
i3/message/version.cr
i3/message/workspace.cr
i3/version.cr

Constant Summary

VERSION = "0.4.0"

The current version of i3.cr.

Class Method Summary

Class Method Detail

def self.act(&) #

A convenience method for quickly creating and disposing of a connection. Yields a new Connection, and destroys it on block close.

I3.act do |con|
  # make the current window sticky
  con.command("sticky enable")
end

[View source]