module Robobot::Workspaces
Public Class Methods
count(num = nil)
click to toggle source
Get or Set current workspace count
# File lib/robobot/workspaces.rb, line 10 def self.count num = nil if num.nil? return `xdotool get_num_desktops` else `xdotool set_num_desktops #{num}` end end
current(workspace = nil)
click to toggle source
Get or Set current workspace
# File lib/robobot/workspaces.rb, line 19 def self.current workspace = nil if workspace.nil? return `xdotool get_desktop` else `xdotool set_desktop #{workspace}` end end
get_workspace(window)
click to toggle source
Get workspace of window
# File lib/robobot/workspaces.rb, line 33 def self.get_workspace window `xdotool get_desktop_for_window #{window.id}` end
move(window, workspace)
click to toggle source
Move window to workspace
# File lib/robobot/workspaces.rb, line 28 def self.move window, workspace `xdotool set_desktop_for_window #{window.id} #{workspace}` end