RectanglePro-Community icon indicating copy to clipboard operation
RectanglePro-Community copied to clipboard

Changing the "visible" frame of the screen

Open jbkkd opened this issue 6 months ago • 2 comments

Thanks for this great piece of software.

You mentioned here that "macOS provides a "visible" frame of the screen to work with".

I've recently hidden my menu bar on top, and use Sketchybar instead. I'm on macOS 15.6, using two external monitors.

The issue I have is that Rectangle (Pro) doesn't know about Sketchybar, and so all commands to move/resize windows place them at the top of the screen, where Sketchybar now lives (and where the hidden menu bar used to live).

I'd like to somehow tell Rectangle to use less of the "visible" frame of the screen. Since that's already exposed by macOS, I imagine there is a way to offset that by a custom amount, and that just needs to be exposed in the settings.

Attaching a screenshot at the bottom that hopefully explains the issue. The right window I manually resized to be below Sketchybar, but the left window I used ctrl+alt+lef to move, and Rectangle placed it at the top, rather than below Sketchybar.

Let me know what you think.

Image

jbkkd avatar Aug 20 '25 14:08 jbkkd

The typical way to work around this is to set screen edge gaps in Rectangle Pro.

defaults write com.knollsoft.Hookshot screenEdgeGapTop -int 10

Change 10 to the height of Sketchybar. Restart Rectangle Pro after the command.

(Here are the other ones, just FYI)

defaults write com.knollsoft.Hookshot screenEdgeGapBottom -int 10
defaults write com.knollsoft.Hookshot screenEdgeGapRight -int 10
defaults write com.knollsoft.Hookshot screenEdgeGapLeft -int 10

My Todo Items around this:

  1. Add these to the UI.
  2. Make them configurable per display.
  3. Detect app windows from 3rd party menu bar / dock implementations and prompt to automatically leave space for those windows.

rxhanson avatar Aug 20 '25 16:08 rxhanson

Thanks! worked like a charm.

Would be awesome to see this in the Ui!

jbkkd avatar Aug 21 '25 08:08 jbkkd