Repository navigation
Window management with Rectangle (Pro)
Chuck Harmston edited this page Mar 2, 2025
·
1 revision
A group of commands to manipulate windows using the excellent Rectangle or Rectangle Pro apps by @rxhanson.
Each command is grouped under the w key (mnemonic "Window"):
-
c- Center -
1- Maximize (i.e. 1 column) -
2- Resize: 2 columns-
1- First half -
2- Last half -
7- Top-left fourth -
8- Top-right fourth -
9- Bottom-left fourth -
0- Bottom-right fourth
-
-
3- Resize: 3 columns-
1- First third -
2- Center third -
3- Last third -
9- First two-thirds -
0- Last two-thirds
-
-
4- Resize: 4 columns-
1- First fourth -
2- Second fourth -
3- Third fourth -
4- Last fourth -
9- First three-fourths -
0- Last three-fourths
-
-
6- Resize: Sixths-
1- Top-left sixth -
2- Top-center sixth -
3- Top-right sixth -
4- Bottom-left sixth -
5- Bottom-center sixth -
6- Bottom-right sixth
-
-
8- Resize: Eighths-
1- Top-left eighth -
2- Top-center-left eighth -
3- Top-center-right eighth -
4- Top-right eighth -
5- Bottom-left eighth -
6- Bottom-center-left eighth -
7- Bottom-center-right eighth -
8- Bottom-right eighth
-
Configuration
{
"actions": [
{
"actions": [
{
"key": "1",
"label": "Maximize",
"type": "url",
"value": "rectangle://execute-action?name=maximize"
},
{
"actions": [
{
"key": "1",
"label": "Left half",
"type": "url",
"value": "rectangle://execute-action?name=left-half"
},
{
"key": "2",
"label": "Right half",
"type": "url",
"value": "rectangle://execute-action?name=right-half"
},
{
"key": "7",
"label": "Top-left",
"type": "url",
"value": "rectangle://execute-action?name=top-left"
},
{
"key": "8",
"label": "Top-right",
"type": "url",
"value": "rectangle://execute-action?name=top-right"
},
{
"key": "9",
"label": "Bottom-left",
"type": "url",
"value": "rectangle://execute-action?name=bottom-left"
},
{
"key": "0",
"label": "Bottom-right",
"type": "url",
"value": "rectangle://execute-action?name=bottom-right"
}
],
"key": "2",
"label": "Resize: Two columns",
"type": "group"
},
{
"actions": [
{
"key": "1",
"label": "First third",
"type": "url",
"value": "rectangle://execute-action?name=first-third"
},
{
"key": "2",
"label": "Center third",
"type": "url",
"value": "rectangle://execute-action?name=center-third"
},
{
"key": "3",
"label": "Last third",
"type": "url",
"value": "rectangle://execute-action?name=last-third"
},
{
"key": "9",
"label": "First two-thirds",
"type": "url",
"value": "rectangle://execute-action?name=first-two-thirds"
},
{
"key": "0",
"label": "Last two-thirds",
"type": "url",
"value": "rectangle://execute-action?name=last-two-thirds"
}
],
"key": "3",
"label": "Resize: Three columns",
"type": "group"
},
{
"actions": [
{
"key": "1",
"label": "First fourth",
"type": "url",
"value": "rectangle://execute-action?name=first-fourth"
},
{
"key": "2",
"label": "Second fourth",
"type": "url",
"value": "rectangle://execute-action?name=second-fourth"
},
{
"key": "3",
"label": "Third fourth",
"type": "url",
"value": "rectangle://execute-action?name=third-fourth"
},
{
"key": "4",
"label": "Last fourth",
"type": "url",
"value": "rectangle://execute-action?name=last-fourth"
},
{
"key": "9",
"label": "First three-fourths",
"type": "url",
"value": "rectangle://execute-action?name=first-three-fourths"
},
{
"key": "0",
"label": "Last three-fourths",
"type": "url",
"value": "rectangle://execute-action?name=last-three-fourths"
}
],
"key": "4",
"label": "Resize: Four columns",
"type": "group"
},
{
"actions": [
{
"key": "1",
"label": "Top-left sixth",
"type": "url",
"value": "rectangle://execute-action?name=top-left-sixth"
},
{
"key": "2",
"label": "Top-center sixth",
"type": "url",
"value": "rectangle://execute-action?name=top-center-sixth"
},
{
"key": "3",
"label": "Top-right sixth",
"type": "url",
"value": "rectangle://execute-action?name=top-right-sixth"
},
{
"key": "4",
"label": "Bottom-left sixth",
"type": "url",
"value": "rectangle://execute-action?name=bottom-left-sixth"
},
{
"key": "5",
"label": "Bottom-center sixth",
"type": "url",
"value": "rectangle://execute-action?name=bottom-center-sixth"
},
{
"key": "6",
"label": "Bottom-right sixth",
"type": "url",
"value": "rectangle://execute-action?name=bottom-right-sixth"
}
],
"key": "6",
"label": "Resize: Sixths",
"type": "group"
},
{
"actions": [
{
"key": "1",
"label": "Top-left eighth",
"type": "url",
"value": "rectangle://execute-action?name=top-left-eighth"
},
{
"key": "2",
"label": "Top-center-left eighth",
"type": "url",
"value": "rectangle://execute-action?name=top-center-left-eighth"
},
{
"key": "3",
"label": "Top-center-right eighth",
"type": "url",
"value": "rectangle://execute-action?name=top-center-right-eighth"
},
{
"key": "4",
"label": "Top-right eighth",
"type": "url",
"value": "rectangle://execute-action?name=top-right-eighth"
},
{
"key": "5",
"label": "Bottom-left eighth",
"type": "url",
"value": "rectangle://execute-action?name=bottom-left-eighth"
},
{
"key": "6",
"label": "Bottom-center-left eighth",
"type": "url",
"value": "rectangle://execute-action?name=bottom-center-left-eighth"
},
{
"key": "7",
"label": "Bottom-center-right eighth",
"type": "url",
"value": "rectangle://execute-action?name=bottom-center-right-eighth"
},
{
"key": "8",
"label": "Bottom-right eighth",
"type": "url",
"value": "rectangle://execute-action?name=bottom-right-eighth"
}
],
"key": "8",
"label": "Resize: Eighths",
"type": "group"
},
{
"key": "p",
"label": "Pin",
"type": "url",
"value": "rectangle://execute-action?name=pin"
},
{
"actions": [
{
"key": "h",
"label": "Stash Left",
"type": "url",
"value": "rectangle://execute-action?name=stash-left"
},
{
"key": "k",
"label": "Stash Up",
"type": "url",
"value": "rectangle://execute-action?name=stash-up"
},
{
"key": "l",
"label": "Stash Right",
"type": "url",
"value": "rectangle://execute-action?name=stash-right"
},
{
"key": "j",
"label": "Stash Down",
"type": "url",
"value": "rectangle://execute-action?name=stash-down"
},
{
"key": "-",
"label": "Unstash",
"type": "url",
"value": "rectangle://execute-action?name=unstash"
},
{
"key": "_",
"label": "Unstash All",
"type": "url",
"value": "rectangle://execute-action?name=unstash-all"
},
{
"key": "=",
"label": "Stash",
"type": "url",
"value": "rectangle://execute-action?name=stash"
},
{
"key": "+",
"label": "Stash All",
"type": "url",
"value": "rectangle://execute-action?name=stash-all"
}
],
"key": "s",
"label": "Stash",
"type": "group"
},
{
"key": "w",
"label": "Close",
"type": "url",
"value": "rectangle://execute-action?name=close"
},
{
"key": "q",
"label": "Quit App",
"type": "url",
"value": "rectangle://execute-action?name=quit-app"
},
{
"key": "f",
"label": "Fullscreen",
"type": "url",
"value": "rectangle://execute-action?name=fullscreen"
},
{
"key": "m",
"label": "Minimize",
"type": "url",
"value": "rectangle://execute-action?name=minimize"
},
{
"key": "c",
"label": "Center",
"type": "url",
"value": "rectangle://execute-action?name=center"
}
],
"key": "w",
"label": "Window",
"type": "group"
}
],
"type": "group"
}In addition to the above commands for resizing and positioning windows, the below configuration includes a few additional commands available to Rectangle Pro users (also under the w group):
-
p- Pin -
s- Stash-
=- Stash current window -
+- Stash all windows -
-- Unstash current window -
_- Unstash all windows -
h- Stash left -
j- Stash down -
k- Stash up -
l- Stash right
-
-
w- Close -
q- Stash -
s- Quit app -
f- Fullscreen -
m- Minimize
Configuration
{
"actions" : [
{
"actions" : [
{
"key" : "1",
"label" : "Maximize",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=maximize"
},
{
"actions" : [
{
"key" : "1",
"label" : "Left half",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=left-half"
},
{
"key" : "2",
"label" : "Right half",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=right-half"
},
{
"key" : "7",
"label" : "Top-left",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-left"
},
{
"key" : "8",
"label" : "Top-right",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-right"
},
{
"key" : "9",
"label" : "Bottom-left",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-left"
},
{
"key" : "0",
"label" : "Bottom-right",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-right"
}
],
"key" : "2",
"label" : "Resize: Two columns",
"type" : "group"
},
{
"actions" : [
{
"key" : "1",
"label" : "First third",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=first-third"
},
{
"key" : "2",
"label" : "Center third",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=center-third"
},
{
"key" : "3",
"label" : "Last third",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=last-third"
},
{
"key" : "9",
"label" : "First two-thirds",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=first-two-thirds"
},
{
"key" : "0",
"label" : "Last two-thirds",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=last-two-thirds"
}
],
"key" : "3",
"label" : "Resize: Three columns",
"type" : "group"
},
{
"actions" : [
{
"key" : "1",
"label" : "First fourth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=first-fourth"
},
{
"key" : "2",
"label" : "Second fourth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=second-fourth"
},
{
"key" : "3",
"label" : "Third fourth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=third-fourth"
},
{
"key" : "4",
"label" : "Last fourth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=last-fourth"
},
{
"key" : "9",
"label" : "First three-fourths",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=first-three-fourths"
},
{
"key" : "0",
"label" : "Last three-fourths",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=last-three-fourths"
}
],
"key" : "4",
"label" : "Resize: Four columns",
"type" : "group"
},
{
"actions" : [
{
"key" : "1",
"label" : "Top-left sixth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-left-sixth"
},
{
"key" : "2",
"label" : "Top-center sixth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-center-sixth"
},
{
"key" : "3",
"label" : "Top-right sixth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-right-sixth"
},
{
"key" : "4",
"label" : "Bottom-left sixth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-left-sixth"
},
{
"key" : "5",
"label" : "Bottom-center sixth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-center-sixth"
},
{
"key" : "6",
"label" : "Bottom-right sixth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-right-sixth"
}
],
"key" : "6",
"label" : "Resize: Sixths",
"type" : "group"
},
{
"actions" : [
{
"key" : "1",
"label" : "Top-left eighth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-left-eighth"
},
{
"key" : "2",
"label" : "Top-center-left eighth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-center-left-eighth"
},
{
"key" : "3",
"label" : "Top-center-right eighth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-center-right-eighth"
},
{
"key" : "4",
"label" : "Top-right eighth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=top-right-eighth"
},
{
"key" : "5",
"label" : "Bottom-left eighth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-left-eighth"
},
{
"key" : "6",
"label" : "Bottom-center-left eighth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-center-left-eighth"
},
{
"key" : "7",
"label" : "Bottom-center-right eighth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-center-right-eighth"
},
{
"key" : "8",
"label" : "Bottom-right eighth",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=bottom-right-eighth"
}
],
"key" : "8",
"label" : "Resize: Eighths",
"type" : "group"
},
{
"key" : "p",
"label" : "Pin",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=pin"
},
{
"actions" : [
{
"key" : "h",
"label" : "Stash Left",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=stash-left"
},
{
"key" : "k",
"label" : "Stash Up",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=stash-up"
},
{
"key" : "l",
"label" : "Stash Right",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=stash-right"
},
{
"key" : "j",
"label" : "Stash Down",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=stash-down"
},
{
"key" : "-",
"label" : "Unstash",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=unstash"
},
{
"key" : "_",
"label" : "Unstash All",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=unstash-all"
},
{
"key" : "=",
"label" : "Stash",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=stash"
},
{
"key" : "+",
"label" : "Stash All",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=stash-all"
}
],
"key" : "s",
"label" : "Stash",
"type" : "group"
},
{
"key" : "w",
"label" : "Close",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=close"
},
{
"key" : "q",
"label" : "Quit App",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=quit-app"
},
{
"key" : "f",
"label" : "Fullscreen",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=fullscreen"
},
{
"key" : "m",
"label" : "Minimize",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=minimize"
},
{
"key" : "c",
"label" : "Center",
"type" : "url",
"value" : "rectangle-pro://execute-action?name=center"
}
],
"key" : "w",
"label" : "Window",
"type" : "group"
}
],
"type" : "group"
}