Class Awesomer
In: lib/awesomer.rb
Parent: Object

Awesomer is a ruby library for interacting with the awesome window manager. It replaces the +awesome-client+ distributed with the window manager.

It‘s used by either creating a new Awesomer object, connecting, performing actions, and lastly close the connection:

 a = Awesomer.new
 a.connect
 a.tag_view 2
 sleep 1
 a.tag_view 3
 a.close

A better way to handle this is to contact the window manager using a block. Connecting and closing are then handled automatically:

 Awesomer.contact do |a|
   a.tag_view 4
   a.spawn :urxvt
   sleep 3
   a.tag_view 5
   a.spawn :urxvt
 end

Methods

close   connect   contact   method_missing   new  

Constants

VERSION = '1.1.0'

Attributes

screen  [RW] 
socket  [RW] 
statusbar  [RW] 

Public Class methods

Contact the awesome window manager using a block.

Public Instance methods

Close connection to the awesome window manager socket.

Connect to the awesome window manager socket.

We take all method calls as possible UICB functions.

[Validate]