aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2019-07-06window.lua: Add `c` shortcut to increase window height to bottomHEADmasterTeddy Wing
A single shortcut to extend the window to the bottom of the screen.
2019-07-06Rebuild docsTeddy Wing
2019-07-03window.lua: Add large increment window resize hotkeysTeddy Wing
Change the modifiers to match the window movement hotkeys.
2019-06-17Update docs with new large window movement shortcutsTeddy Wing
2019-06-17Document `i` shortcutTeddy Wing
2019-06-17Add shortcuts to move window by large incrementsTeddy Wing
Takes the shortcuts of the previous medium increment bindings. Medium increments now use the Shift modifier, and small increments use Option.
2019-06-17Add READMETeddy Wing
2019-06-16Add documentationTeddy Wing
Used the following Spoons as a format reference: - https://github.com/Hammerspoon/Spoons/blob/master/Source/Tunnelblick.spoon/init.lua - https://github.com/Hammerspoon/Spoons/blob/master/Source/Token.spoon/init.lua The Spoons documentation describes how to generate a required `docs.json` file: https://github.com/Hammerspoon/hammerspoon/blob/master/SPOONS.md Thanks to Adam Matan (https://stackoverflow.com/users/51197/adam-matan) on Stack Overflow for the tip on Make's `CURDIR` variable. Didn't know that existed. https://stackoverflow.com/questions/52437728/bash-what-is-the-difference-between-pwd-and-curdir/52447088#52447088
2019-06-16Convert to a SpoonTeddy Wing
Convert the script to a Hammerspoon Spoon. Allows a user to set a custom binding to activate the mode.
2019-06-15Add license (GNU GPLv3+)Teddy Wing
2019-06-15window: Remove 'shift' from mode modifiersTeddy Wing
Reduce the number of modifiers needed to activate the mode. Makes it a bit easier on the fingers. Didn't go with Ctrl-Shift because I thought it might be easier to accidentally activate with Vim window shortcuts.
2019-06-15window: Add shortcut to move window to topTeddy Wing
Quickly move a window to the top of the screen.
2019-06-15window: Fix commands to move window to screenTeddy Wing
* Don't resize the window * Don't animate window movement
2019-06-15window.lua: Add window resize hotkeysTeddy Wing
New shortcuts to resize windows, again in medium and small increments.
2019-06-15Add window movement hotkeysTeddy Wing
Create a new mode activated with <C-M-S-w> that activates hotkeys to do window management. Add hotkeys to move windows up, down, left, and right. One set of hotkeys to move by small increments and another set to move by slightly larger increments. Based on code from 'derekwyatt' (https://github.com/derekwyatt): https://github.com/fikovnik/ShiftIt/issues/296#issuecomment-438386501 > units = { > right30 = { x = 0.70, y = 0.00, w = 0.30, h = 1.00 }, > right70 = { x = 0.30, y = 0.00, w = 0.70, h = 1.00 }, > left70 = { x = 0.00, y = 0.00, w = 0.70, h = 1.00 }, > left30 = { x = 0.00, y = 0.00, w = 0.30, h = 1.00 }, > top50 = { x = 0.00, y = 0.00, w = 1.00, h = 0.50 }, > bot50 = { x = 0.00, y = 0.50, w = 1.00, h = 0.50 }, > upright30 = { x = 0.70, y = 0.00, w = 0.30, h = 0.50 }, > botright30 = { x = 0.70, y = 0.50, w = 0.30, h = 0.50 }, > upleft70 = { x = 0.00, y = 0.00, w = 0.70, h = 0.50 }, > botleft70 = { x = 0.00, y = 0.50, w = 0.70, h = 0.50 }, > maximum = { x = 0.00, y = 0.00, w = 1.00, h = 1.00 } > } > > mash = { 'shift', 'ctrl', 'cmd' } > hs.hotkey.bind(mash, 'l', function() hs.window.focusedWindow():move(units.right30, nil, true) end) > hs.hotkey.bind(mash, 'h', function() hs.window.focusedWindow():move(units.left70, nil, true) end) > hs.hotkey.bind(mash, 'k', function() hs.window.focusedWindow():move(units.top50, nil, true) end) > hs.hotkey.bind(mash, 'j', function() hs.window.focusedWindow():move(units.bot50, nil, true) end) > hs.hotkey.bind(mash, ']', function() hs.window.focusedWindow():move(units.upright30, nil, true) end) > hs.hotkey.bind(mash, '[', function() hs.window.focusedWindow():move(units.upleft70, nil, true) end) > hs.hotkey.bind(mash, ';', function() hs.window.focusedWindow():move(units.botleft70, nil, true) end) > hs.hotkey.bind(mash, "'", function() hs.window.focusedWindow():move(units.botright30, nil, true) end) > hs.hotkey.bind(mash, 'm', function() hs.window.focusedWindow():move(units.maximum, nil, true) end)