Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an additional macOS sample config to the README.md #759

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,36 @@ control (when held) and remaps all modifiers to 'oneshot' keys. Thus to produce
the letter A you can now simply tap shift and then a instead of having to hold
it. Finally it remaps insert to S-insert (paste on X11).

# Sample macOS config

Do you roll macOS by day, and linux by night? Here's a great way to aid in the
context switch making the `alt` (`cmd`) key replicate common `ctrl` combinations like *cut*, *copy*, and *paste*:

# Map common macOS keybinds to work in linux
[ids]
*

[main]

# Cmd
[alt]

# Cut (alt+x -> ctrl+x)
x = C-x
# Copy
c = C-c
# Paste
v = C-v

# Select All
a = C-a
# Find
f = C-f
# Replace
r = C-r
# Undo
z = C-z

# FAQS

## What about xmodmap/setxkbmap/*?
Expand Down