macOS: map Left Option to Control+Option+Command for GlazeWM
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Read the GlazeWM Karabiner rule in macos/core/stowed/.config/karabiner/karabiner.json, the bindings in macos/glazewm/stowed/.glzr/glazewm/config.yaml, and the README section and comments naming Option+Command. Update the modifiers and references, then verify the bindings and the listed macOS shortcuts on a Mac, including Control+Option+Command+8. Done means all bindings work and the specified fallback cases cause no harmful actions.
Written by the indexing model from the issue text.
Description
Follow-up to #55.
Problem
On macOS, Karabiner turns Left Option+key into Option+Command+key while GlazeWM runs, and GlazeWM binds the alt+cmd+… combinations. When GlazeWM doesn't take a key, the app or macOS gets the Option+Command combination. That happens before Accessibility is granted, while GlazeWM manages no windows, or while a password field has Secure Keyboard Entry on.
Many Option+Command combinations already mean something. Of our bindings:
- Option+Command+H hides other apps, and Option+Command+M minimizes all windows of the app.
- Option+Command+Space opens a Finder search window.
- Option+Command+T, +V, +P and +N are Finder toolbar, move, path bar and new-folder shortcuts, and +F is find and replace in many editors.
- Option+Shift+Command+Q logs out at once. #55 moved close to
alt+cmd+shift+cfor that reason.
Proposal
Map Left Option+key to Control+Option+Command+key instead, and bind ctrl+alt+cmd+… in GlazeWM. Apps and macOS use few Control+Option+Command combinations. Known ones: Control+Option+Command+8 inverts colors, but only when that accessibility shortcut is on (off by default). Control+Command+Q locks the screen, but macOS matches modifiers exactly, so adding Option shouldn't trigger it. Check this on the Mac.
To do
- In
macos/core/stowed/.config/karabiner/karabiner.json, addleft_controlto the GlazeWM rule'stomodifiers. - In
macos/glazewm/stowed/.glzr/glazewm/config.yaml, change everyalt+cmd+binding toctrl+alt+cmd+. - Update the README section and the comments that name Option+Command.
For the Mac agent to check
- Do all bindings still work?
- With GlazeWM quit from its menu, before the helper clears the variable (about a second), or with Accessibility off: do Left Option+Shift+Q, +H, +M and +8 do nothing harmful?
- Is Control+Option+Command+8 (invert colors) off on the managed Mac?
- Dominant language
- Lua
- Stars
- 10
- Forks
- 2
- Avg merge
- 4h 53m
- Merged PRs (30d)
- 30
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Gelio/dotfiles
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Gelio/dotfiles#63 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
grumpycoders/pcsx-redux#2667 ·
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
coder/claudecode.nvim#588 ·
Maintainers usually reply within 1 day
-
documentation night-shift
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nvim-telescope/telescope.nvim#3718 ·
Maintainers usually reply within 1 day
-
bug discord guide:leatherworking locale:enUS triage v0.3.6
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day