Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

Center not working on fullscreened app

Open escoolioinglesias opened this issue 3 years ago • 0 comments

  • [ ] This is a new bug that hasn't been documented in a closed issue or in the Readme.

macOS version: Monterey 12.6 Rectangle version: v0.66 (60) Logs if applicable (In Rectangle menu, hold option, "View Logging..."): N/A

ctrl + alt + c doesn't center a window when an app is in fullscreen

My workaround using AppleScript to run shell script, bound to a hotkey by Hammerspoon:

hs.hotkey.bind({"ctrl", "alt"}, "C", function()
    hs.osascript.applescript([[ 

        do shell script "open -g 'rectangle://execute-action?name=bottom-left-sixth' ; open -g 'rectangle://execute-action?name=center'"

    ]])
end)

Cheers!

escoolioinglesias avatar Oct 20 '22 02:10 escoolioinglesias