Module: Tiling

Defined in:
lib/tiling.rb,
lib/tiling/mover.rb,
lib/tiling/layout.rb,
lib/tiling/option.rb,
lib/tiling/windows.rb,
lib/tiling/workspace.rb,
lib/tiling/frame_extents.rb,
lib/tiling/vertical_layout.rb,
lib/tiling/horizontal_layout.rb

Defined Under Namespace

Classes: FrameExtents, HorizontalLayout, Layout, Mover, Option, VerticalLayout, Windows, Workspace

Class Method Summary collapse

Class Method Details

.runObject



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/tiling.rb', line 16

def self.run
  options = Option.new
  workspace = Workspace.new
  windows = Windows.new workspace
  exit if windows.empty?
  if options[:vertical]
    layout = VerticalLayout.new workspace, windows
  else
    layout = HorizontalLayout.new workspace, windows
  end
  layout.lay_master_window
  layout.lay_remaining_windows
end