class Tiling::Workspace
Public: Current workspace (virtual desktop) state.
Attributes
id[R]
Public Class Methods
new()
click to toggle source
# File lib/tiling/workspace.rb, line 8 def initialize @desktops = WMCtrl.instance.desktops @desktops.each do |desktop| if desktop[:current] @id = desktop[:id] break end end end
Public Instance Methods
height()
click to toggle source
# File lib/tiling/workspace.rb, line 30 def height @desktops[@id][:workarea][3] end
width()
click to toggle source
# File lib/tiling/workspace.rb, line 26 def width @desktops[@id][:workarea][2] end
x()
click to toggle source
# File lib/tiling/workspace.rb, line 18 def x @desktops[@id][:workarea][0] end
y()
click to toggle source
# File lib/tiling/workspace.rb, line 22 def y @desktops[@id][:workarea][1] end