Skip to content

Commit

Permalink
Disable minimising windows (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecarlo authored Jun 16, 2024
1 parent 1bbc03f commit 90f0048
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 43 deletions.
16 changes: 12 additions & 4 deletions public/extra_descriptions/mac_osx.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,24 @@
</table>

<p style="margin-top: 20px; font-weight: bold">
Disable minimising applications
Disable minimising windows on Mac OSX.
</p>

<p>
Since it's easy to accidentally minimise an application, I've disabled the cmd + h default keybinding in Mac OSX.
Minimising windows on OSX is annoying as the windows disappear and leads to unnecessary friction to find the windows and open them again.
</p>

<table class="table">
<tr>
<td style="width: 200px;">cmd + h</td>
<td>keybinding is disabled</td>
<td style="width: 400px;">cmd + h (minimise the active application window)</td>
<td>
Keybinding is disabled
</td>
</tr>
<tr>
<td style="width: 400px;">cmd + option + h + m (minimise all application windows)</td>
<td>
Keybinding is disabled
</td>
</tr>
</table>
14 changes: 0 additions & 14 deletions public/extra_descriptions/mac_osx_disable_cmd_h.html

This file was deleted.

24 changes: 24 additions & 0 deletions public/extra_descriptions/mac_osx_disable_minimising_windows.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<link rel="stylesheet" href="../../vendor/css/bootstrap.min.css"/>

<p style="margin-top: 20px; font-weight: bold">
Disable minimising windows on Mac OSX.
</p>

<p>
Minimising windows on OSX is annoying as the windows disappear and leads to unnecessary friction to find the windows and open them again.
</p>

<table class="table">
<tr>
<td style="width: 400px;">cmd + h (minimise the active application window)</td>
<td>
Keybinding is disabled
</td>
</tr>
<tr>
<td style="width: 400px;">cmd + option + h + m (minimise all application windows)</td>
<td>
Keybinding is disabled
</td>
</tr>
</table>
8 changes: 4 additions & 4 deletions public/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,10 @@
{
"path": "json/mac_osx_double_tap_q_close_application.json"
},
{
"path": "json/mac_osx_disable_minimising_windows.json",
"extra_description_path": "extra_descriptions/mac_osx_disable_minimising_windows.html"
},
{
"path": "json/mwit-taskbar-number-launch-app.json"
},
Expand Down Expand Up @@ -1404,10 +1408,6 @@
"path": "json/multitouch_vi_mode.json",
"extra_description_path": "extra_descriptions/multitouch_vi_mode.json.html"
},
{
"path": "json/mac_osx_disable_cmd_h.json",
"extra_description_path": "extra_descriptions/mac_osx_disable_cmd_h.html"
},
{
"path": "json/multitouch_mouse_buttons.json",
"extra_description_path": "extra_descriptions/multitouch_mouse_buttons.json.html"
Expand Down
27 changes: 26 additions & 1 deletion public/json/mac_osx.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
]
},
{
"description": "Mac OSX: disable cmd + h so that it does not minimise windows",
"description": "Mac OSX: disable cmd + h to prevent minimising an application window",
"manipulators": [
{
"from": {
Expand All @@ -245,6 +245,31 @@
"type": "basic"
}
]
},
{
"description": "Mac OSX: disable cmd + option + h + m to prevent minimising all windows",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["command", "option"],
"optional": ["any"]
}
},
"type": "basic"
},
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["command", "option"],
"optional": ["any"]
}
},
"type": "basic"
}
]
}
]
}
20 changes: 0 additions & 20 deletions public/json/mac_osx_disable_cmd_h.json

This file was deleted.

45 changes: 45 additions & 0 deletions public/json/mac_osx_disable_minimising_windows.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"title": "Mac OSX: disable minimising windows",
"maintainers": ["thecarlo"],
"rules": [
{
"description": "Mac OSX: disable cmd + h to prevent minimising an application window",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["command"]
}
},
"type": "basic"
}
]
},
{
"description": "Mac OSX: disable cmd + option + h + m to prevent minimising all windows",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["command", "option"],
"optional": ["any"]
}
},
"type": "basic"
},
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": ["command", "option"],
"optional": ["any"]
}
},
"type": "basic"
}
]
}
]
}

0 comments on commit 90f0048

Please sign in to comment.