Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-06-19 | init: Move Terminal tab shortcuts to a new file | Teddy Wing | |
Now that there's a lot more code for this, extract it to a separate file. | |||
2019-06-19 | init: Deactivate Terminal tab switching hotkeys outside of Terminal | Teddy Wing | |
The bindings I created to switch tabs in Terminal shadowed shortcuts in all other applications, preventing them from performing their normal function. To get the bindings only in Terminal, add an application watcher that enables and disables them when Terminal is activated and deactivated. | |||
2019-06-19 | application_switch: Allow cancelling out of F13 mode | Teddy Wing | |
Otherwise it will stay active until the next time I press a bound key, forcibly switching applications when not intended. | |||
2019-06-19 | application_switch: Remove impossible TODO | Teddy Wing | |
Turns out you can't define a multi-key mapping. Not sure if there's a way to define a dead key in Hammerspoon other than using a mode. Looks like the way I originally wrote it is the way to do it. | |||
2019-06-19 | application_switch: Prefer left-handed shortcuts for mode mappings | Teddy Wing | |
Change mappings preceded by the F13 key to use easy to reach keys on the left side of the keyboard. Since F13 requires moving the right hand, use keys that don't require me to move my left hand, enabling me to activate these without looking down at the keyboard. | |||
2019-06-19 | application_switch: Add shortcuts for more frequently used applications | Teddy Wing | |
Hide these under a mode switch as they're not as frequently used as the others defined at the top of the file. | |||
2019-06-19 | mouse: Add scrolling shortcuts | Teddy Wing | |
Scroll up, down, left, right using the number pad keys. Activate using F14, or scroll lock. | |||
2019-06-17 | Add application switching shortcuts | Teddy Wing | |
Bind a few F<n> keys to activate frequently used applications. | |||
2019-06-17 | Spoons/WindowMode.spoon: Upgrade to latest HEAD | Teddy Wing | |
2019-06-17 | mouse: Remove Ctrl-Option-Shift-m mode hotkey | Teddy Wing | |
Changed this to 'padclear', and the way the code is written, we can't have two shortcuts to activate & deactivate the mode. Just keep one. | |||
2019-06-17 | Extract `window.lua` to `WindowMode.spoon` | Teddy Wing | |
2019-06-17 | Add 'WindowMode.spoon' | Teddy Wing | |
2019-06-16 | Add README | Teddy Wing | |
2019-06-15 | Add license (GNU GPLv3+) | Teddy Wing | |
2019-06-15 | window: Remove 'shift' from mode modifiers | Teddy 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-15 | mouse: Send mouse down and up events separately | Teddy Wing | |
Send 'down' when pressing the key, and 'up' when releasing. This sort of enables us to drag things, but I wasn't able to get an animation while dragging a window to test this. Looks like I'll need to work out a way to send mouse dragged events. | |||
2019-06-15 | mouse: Activate mode with num lock | Teddy Wing | |
Add an additional mode switch with the num lock or 'clear' key. | |||
2019-06-15 | mouse: Add shortcuts for 10px and 1px movement | Teddy Wing | |
Now we can move by large (100px) increments, as well as smaller 10px and 1px increments for more precision. | |||
2019-06-15 | Add mouse hotkeys | Teddy Wing | |
Proof of concept of shortcuts to move the mouse around. | |||
2019-06-15 | window: Add shortcut to move window to top | Teddy Wing | |
Quickly move a window to the top of the screen. | |||
2019-06-15 | Add <F8> shotcut to invert screen colours | Teddy Wing | |
Makes it a bit quicker with a single key instead of a two-handed shortcut with modifiers. Allows me to keep the existing shortcut. | |||
2019-06-15 | window: Fix commands to move window to screen | Teddy Wing | |
* Don't resize the window * Don't animate window movement | |||
2019-06-15 | window.lua: Add window resize hotkeys | Teddy Wing | |
New shortcuts to resize windows, again in medium and small increments. | |||
2019-06-15 | Add window movement hotkeys | Teddy 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) | |||
2019-06-15 | init.lua: Add hotkey to extend window height to bottom | Teddy Wing | |
Makes it easier to maximise windows. Want this to embiggen browser windows to full height when I connect to an external monitor. | |||
2019-06-15 | Add Hammerspoon config | Teddy Wing | |
Add shortcuts to focus tabs 1-10 in the frontmost Terminal window. |