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.
- xdotool
- wmctrl
- ruby (I hate bash's confusing syntax)
./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.
./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/'