Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 613 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 613 Bytes

window_slide.rb

Script which shows/hides a specific window (like it is done in Guake Terminal).

To be used inside a global shortcut like F12 or Win+J.

Requirements

  • xdotool
  • wmctrl
  • ruby (I hate bash's confusing syntax)

Using

./window_slide.rb 'title' x,y,width,height 'command'

where:

  • title: unique title of window, or part of it;
  • command: command to execute if the window doesn't exist yet.

Examples

./window_slide.rb 'Finances.ods' 0,0,1920,800 'xdg-open ~/Finances.ods'

./window_slide.rb 'Example Domain' 100,100,500,500 'firefox --new-window http://example.com/'