My Environment
Why I Chose keyd
Installing keyd
Method 1 — Install from repositories
Enable the keyd Service
Creating the Remap
Apply the Changes
Testing
Things I Learned During This
Useful Commands
Reload configuration
Restart the service
Stop the service
Disable autostart
Uninstall keyd
Final Thoughts It’s been two days since my external keyboard’s Enter button stopped working.
At first, I seriously thought about throwing away the keyboard because the Enter key is basically everything while coding or using a terminal. Then I got a thought: What if I could use another key as Enter? I searched online and eventually found a lightweight solution using keyd. In my case, I remapped: and it worked perfectly. You can check your session type with: then you are good to follow further. keyd is a low-level keyboard remapping daemon that works very well on modern Linux systems. https://github.com/rvaiya/keyd If unavailable in repositories: Start and enable the daemon: Check if it is running: You should see something like: Open the keyd configuration file: Paste this configuration: Reload the configuration: It should behave exactly like the Enter key: While troubleshooting this issue, I learned: That’s why remapping: Honestly, I started this just trying to save a keyboard with a broken Enter key. But while fixing it, I ended up learning: Linux customization goes surprisingly deep once you start exploring it. Templates let you quickly answer FAQs or store snippets for re-use. Have you done something like this? Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse
Right Alt → Enter
Right Alt → Enter
Right Alt → Enter
echo $XDG_SESSION_TYPE
echo $XDG_SESSION_TYPE
echo $XDG_SESSION_TYPE
sudo apt install keyd
sudo apt install keyd
sudo apt install keyd
git clone https://github.com/rvaiya/keyd.git
cd keyd
make
sudo make install
git clone https://github.com/rvaiya/keyd.git
cd keyd
make
sudo make install
git clone https://github.com/rvaiya/keyd.git
cd keyd
make
sudo make install
sudo systemctl enable --now keyd
sudo systemctl enable --now keyd
sudo systemctl enable --now keyd
systemctl status keyd
systemctl status keyd
systemctl status keyd
active (running)
active (running)
active (running)
sudo nano /etc/keyd/default.conf
sudo nano /etc/keyd/default.conf
sudo nano /etc/keyd/default.conf
[ids] * [main] rightalt = enter
[ids] * [main] rightalt = enter
[ids] * [main] rightalt = enter
sudo keyd reload
sudo keyd reload
sudo keyd reload
sudo keyd reload
sudo keyd reload
sudo keyd reload
sudo systemctl restart keyd
sudo systemctl restart keyd
sudo systemctl restart keyd
sudo systemctl stop keyd
sudo systemctl stop keyd
sudo systemctl stop keyd
sudo systemctl disable keyd
sudo systemctl disable keyd
sudo systemctl disable keyd
sudo apt remove keyd
sudo apt remove keyd
sudo apt remove keyd - Linux: Debian 12
- Desktop Environment: GNOME Shell 43.9
- Display System: Wayland - a lightweight solution
- no complicated GUI
- something that works properly on Wayland - execute terminal commands
- create new lines
- work in browsers/editors - modern Linux desktops use Wayland
- old X11 remapping tools are less reliable on Wayland
- keyd works at a lower level using Linux input events
- GNOME aggressively captures Super-key shortcuts. I can't even use any other shortcuts as enter because of this. - Super + key
was inconsistent for me, - Right Alt → Enter
worked reliably. - Wayland vs X11
- Linux input remapping
- low-level input systems - Location Bangalore, India
- Pronouns He/Him
- Joined Aug 11, 2023