Feature Request: Extended cycling for quarters - combine horizontal fourths + 2x2 corners #1682
Replies: 2 comments
-
Update: Built a workaround using HammerspoonWhile waiting for this feature, I implemented extended cycling using Hammerspoon (free, open source). Result: Hammerspoon config ( -- Extended cycling for ⌘+Numpad 4
-- Cycles: 4 horizontal fourths → 4 corner quarters
local fourPositions = {
-- Horizontal fourths (1-4)
{x = 0, y = 0, w = 0.25, h = 1},
{x = 0.25, y = 0, w = 0.25, h = 1},
{x = 0.5, y = 0, w = 0.25, h = 1},
{x = 0.75, y = 0, w = 0.25, h = 1},
-- 2x2 corners (5-8)
{x = 0, y = 0, w = 0.5, h = 0.5},
{x = 0.5, y = 0, w = 0.5, h = 0.5},
{x = 0, y = 0.5, w = 0.5, h = 0.5},
{x = 0.5, y = 0.5, w = 0.5, h = 0.5},
}
local currentIndex = 0
local function moveToPosition(positions, index)
local win = hs.window.focusedWindow()
if not win then return end
local screen = win:screen()
local f = screen:frame()
local pos = positions[index]
win:setFrame({
x = f.x + (f.w * pos.x),
y = f.y + (f.h * pos.y),
w = f.w * pos.w,
h = f.h * pos.h
})
end
hs.hotkey.bind({"cmd"}, "pad4", function()
currentIndex = (currentIndex % #fourPositions) + 1
moveToPosition(fourPositions, currentIndex)
end)Works great alongside Rectangle for the other shortcuts. Happy to help if this informs native implementation. Part of a larger "Numpad System" where the number = the division (⌘+2 = halves, ⌘+3 = thirds, etc.) |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the feedback. I'm open to a pull request that would build this into Rectangle, but I don't have plans to implement it myself at this time. This capability is implemented in Rectangle Pro's custom size and position builder, where you can click on the + button on an entry to add repetitions:
(Rectangle Pro is paid and closed source, https://rectangleapp.com/pro) |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request
Current behavior:
firstFourthcycles through 4 horizontal strips (1/4 width each)topLeftplaces window in top-left corner of 2x2 grid (no cycling)Requested behavior:
A single command that cycles through ALL 8 "quarter" positions:
Visual:
Use case:
Building a mnemonic numpad system where
⌘+4= "all things four" - both fourths AND quarters accessible from one key with extended cycling.Why this matters:
This could apply to other numbers too:
⌘+6: cycle through sixths (horizontal) + sixths (2x3 grid)⌘+8: cycle through eighths (horizontal) + eighths (4x2 grid)Happy to discuss implementation approaches. Love this project!
Beta Was this translation helpful? Give feedback.
All reactions