11

I have this set up as a startup script, but it only sometimes triggers, despite setting a 20-second delay:

#!/bin/bash
sleep 2
xmodmap -e "clear lock"
xmodmap -e "keycode 66 = Return"

I have the startup command set to bash "path/Remap_Caps_Lock_to_Enter.sh". What's going on? It works when I press the triangle button when it doesn't work on boot.

you are viewing a single comment's thread
view the rest of the comments
[-] artwork@lemmy.world 2 points 4 days ago* (last edited 3 days ago)

If I am not mistaken, Linux Mint settings service uses xkeyboard-config.


Would you mind to add "caps:return" to the list of supported keyboard options?

Source: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/work_items/121 [2017-04-07]

---

xkeyboard-config 2.43...

Added caps:return to make the Caps Lock key an additional Return key.

Source [2024-10-01]

---

<option>
  <configItem>
    <name>caps:return</name>
    <description>Make Caps Lock an additional Return key</description>
  </configItem>
</option>

Source

The actual commit: 6b30f36201b40fddcf28918eb4c96b13a23b42ae


Yet, I've checked in a virtual machine online, and there's no such, apparently, indeed (sorry).
However, I believe it's possible to modify it manually in file /usr/share/X11/xkb/rules/evdev.xml, and I've tried quickly the following (after changes to the file, restart the csd-keyboard; e.g., by killing it). Would it work in your case (I would also try rebooting after)?:

Screenshot

[-] Flagstaff@programming.dev 2 points 3 days ago

Oh, sweet, huh, nice. Thanks a ton for the research; I totally didn't think to go this route. I'll try it when I next can!

this post was submitted on 11 Jun 2026
11 points (100.0% liked)

Linux Mint

341 readers
3 users here now

A community for news and discussion about linux mint

founded 2 years ago
MODERATORS