Class: Fusuma::Plugin::Wmctrl::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



13
14
15
# File 'lib/fusuma/plugin/wmctrl/window.rb', line 13

def close
  "wmctrl -c :ACTIVE:"
end

#fullscreen(method:) ⇒ Object

Parameters:

  • method (String)

    “toggle” or “add” or “remove”



18
19
20
# File 'lib/fusuma/plugin/wmctrl/window.rb', line 18

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

#maximized(method:) ⇒ Object

Parameters:

  • method (String)

    “toggle” or “add” or “remove”



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

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