Skip to content

Instantly share code, notes, and snippets.

View bdowling's full-sized avatar
📈
Onward and Upward!

Brian Dowling bdowling

📈
Onward and Upward!
View GitHub Profile
@bdowling
bdowling / swind
Last active August 29, 2017 13:21 — forked from andrewmcdonough/swind
A bash script to move the focused window in X to different parts of the screen. Most useful when you assign shortcut keys to the various options, e.g. assign '<Super>Up' to run 'swind up'
#!/bin/bash
# Written by Andrew McDonough
# Prerequisites: xdotool must be installed and in your path (http://tinyurl.com/xdotool)
# A simple bash script that uses xdotool to move the window that is currently in focus to different parts of the screen.
# Particularly useful for reading web pages with flexible layouts on wide monitors.
# Assign the various options to keyboard shortcuts e.g. '<Super>Left' assigned to 'swind left'
# See http://tinyurl.com/ubuntukeys for help with assigning keyboard shortcuts.
# Added fetching display geometry