Class: Window

Inherits:
Object
  • Object
show all
Defined in:
lib/fusuma/plugin/wmctrl/window.rb

Overview

Manage Window

Instance Method Summary collapse

Instance Method Details

#closeObject



10
11
12
# File 'lib/fusuma/plugin/wmctrl/window.rb', line 10

def close
  'wmctrl -c :ACTIVE:'
end

#fullscreen(method:) ⇒ Object



15
16
17
# File 'lib/fusuma/plugin/wmctrl/window.rb', line 15

def fullscreen(method:)
  "wmctrl -r :ACTIVE: -b #{method},fullscreen"
end

#maximized(method:) ⇒ Object



6
7
8
# File 'lib/fusuma/plugin/wmctrl/window.rb', line 6

def maximized(method:)
  "wmctrl -r :ACTIVE: -b #{method},maximized_vert,maximized_horz"
end