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

Linux Mint

354 readers
1 users here now

A community for news and discussion about linux mint

founded 2 years ago
MODERATORS
 

The issue seems to be Keysharp interfering!

Original post:


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
[–] Flagstaff@programming.dev 1 points 1 week ago* (last edited 1 week ago) (1 children)

Dang, sorry to read about your ban. By the way, I think it is Keysharp that is causing the problem because it seems to be working just fine when I have that app disabled. I do like it a lot though, so I'll keep tinkering and finding some way to possibly try to get both of them to work concurrently. It uses Microsoft's .NET 10 runtime, but the latest versions have been having issues on my PC, so I've been going without Keysharp, and the Caps Lock reconfiguration is working flawlessly, haha. Thanks for your patience!

[–] artwork@lemmy.world 1 points 1 week ago (1 children)

Thank you for the update! Just to clarify, I am sorry, what is KeySharp exactly? Is it one of the following?:
- https://github.com/goaaats/KeySharp
- https://github.com/mfeemster/keysharp
- https://apps.microsoft.com/detail/9nkmq5kbjg59

[–] Flagstaff@programming.dev 2 points 1 week ago (1 children)
[–] artwork@lemmy.world 1 points 1 day ago

Thank you very much for sharing!

AutoHotKey (AHK) are quite great for Windows, yet I am not sure about Linux, where you may have even more featureful and optimal solutions based on Xorg/Wayland, and/or your desktop environment (e.g., KDE Plasma).
Unless you don't want/have time to migrate these Windows-oriented scripts, are you sure you want to depend on them?