macos

4 HOWTOs · all tags

  1. Switch the macOS keyboard layout automatically per keyboard (Karabiner-Elements)

    Make macOS pick the right input source for whichever keyboard you actually type on — French (Mac) for the built-in and Apple keyboards, French-PC for a Keychron V6 Max — using two Karabiner-Elements rules, plus the two traps that silently break it: keyboards that also declare themselves as pointing devices, and the console user server not restarting after a Karabiner update.

  2. macOS-style screenshot shortcuts on GNOME (Fedora)

    Replicate the macOS screenshot key bindings (Cmd+Shift+3/4/5) on GNOME so muscle memory carries over from a MacBook — including the non-obvious part: Dash to Dock silently steals Super+Shift+N, and the pre-GNOME 42 gsettings keys no longer exist.

  3. Stop Claude Code from hijacking mouse clicks (fullscreen mouse capture) on Linux & macOS

    Since fullscreen rendering, Claude Code captures the mouse — clicking in the prompt moves the cursor and a stray click can hit 'Ask something' or a menu option (very easy to do by accident in the JetBrains/IntelliJ terminal). Disable click/drag/hover while keeping wheel scroll with CLAUDE_CODE_DISABLE_MOUSE_CLICKS=1, or kill mouse capture entirely with CLAUDE_CODE_DISABLE_MOUSE=1. There is no settings.json field and no CLI flag — only these environment variables — and a running session must be restarted to pick them up.

  4. macOS-style Super+C / Super+V copy-paste everywhere on Fedora GNOME (incl. Ptyxis terminal)

    Remap the Super key so Super+C/V/X copy/paste/cut in every app and in the Ptyxis terminal on Fedora GNOME Wayland, just like Cmd+C/V on macOS.