Skip to content

Commit

Permalink
Merge pull request #1032 from benminer/master
Browse files Browse the repository at this point in the history
Allow configuration option for stageSize to be treated as a percentage if less than 1
  • Loading branch information
rxhanson authored Dec 16, 2022
2 parents edfdc39 + 7732f21 commit d896ab1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Rectangle/ScreenDetection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,14 @@ extension NSScreen {

if Defaults.stageSize.value > 0 {
if StageUtil.stageCapable && StageUtil.stageEnabled && StageUtil.stageStripShow && StageUtil.getStageStripWindowGroups().count > 0 {
let stageSize = Defaults.stageSize.value < 1
? newFrame.size.width * Defaults.stageSize.cgFloat
: Defaults.stageSize.cgFloat

if StageUtil.stageStripPosition == .left {
newFrame.origin.x += Defaults.stageSize.cgFloat
newFrame.origin.x += stageSize
}
newFrame.size.width -= Defaults.stageSize.cgFloat
newFrame.size.width -= stageSize
}
}

Expand Down
14 changes: 14 additions & 0 deletions TerminalCommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ Note that if subsequent execution mode is set to cycle displays when this is ena
defaults write com.knollsoft.Rectangle resizeOnDirectionalMove -bool true
```

## Adjust macOS Ventura Stage Manager size

By default, the Stage Manager area will be set to 190, if enabled.

```bash
defaults write com.knollsoft.Rectangle stageSize -float <VALUE>
```

To set it to a proportion of your screen's width, set it to a value between 0 and 1.

```bash
defaults write com.knollsoft.Rectangle stageSize -float <VALUE_BETWEEN_0_AND_1>
```

## Enable Todo Mode

See the [wiki](https://github.com/rxhanson/Rectangle/wiki/Todo-Mode) for more info.
Expand Down

0 comments on commit d896ab1

Please sign in to comment.