{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreigihgadnmkgcfzmwpqkylgih4nrhhyzaw7lqxzhrbokxjwjcpctxq",
"uri": "at://did:plc:aoqs4f5ru6ztomatyvept7bf/app.bsky.feed.post/3mnlsxxdx5g2b"
},
"canonicalUrl": "https://til.iainsimmons.com/posts/remap-the-capslock-key-in-linux",
"description": "today iain learned: How to remap the CapsLock key with a tap-hold keybind in Linux",
"path": "/posts/remap-the-capslock-key-in-linux",
"publishedAt": "2025-12-17T00:00:00.000Z",
"site": "at://did:plc:aoqs4f5ru6ztomatyvept7bf/site.standard.publication/3mnlsntqzp72a",
"tags": [
"linux",
"CLI",
"dotfiles"
],
"textContent": "Today (or recently) I found out that the awesome Wez Furlong (creator of WezTerm) also made this great key remapping tool for Linux called evremap.\n\nI wanted to remap my CapsLock key on an old Macbook Air I've recently installed Arch Linux on, so that tapping it would map to Esc, and holding it would be Super + Ctrl + Shift + Alt, just like I have on my mechanical keyboard that I use on my other computers.\n\nFollowing the instructions from the repo, I created a basic config file:\n\nThen created a service, again, following the instructions for running as a service but tweaking because it somehow needed the full paths to things:\n\nAnd created a bash script in the config directory to copy the service, enable it and run it:\n\nIt's also helpful to run sudo systemctl status evremap.service to confirm it's running as expected.",
"title": "Remap the CapsLock key in Linux"
}