11
submitted 1 month ago* (last edited 1 week ago) by Flagstaff@programming.dev to c/linuxmint@programming.dev

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
[-] artwork@lemmy.world 2 points 2 days 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?

[-] Flagstaff@programming.dev 1 points 9 hours ago

I ported over as much as I could to Espanso, yeah. I appreciate your concern and would ideally ditch this software too but the problem is that I haven't found a really competent equivalent; Python is just way too tricky to figure out and libraries like pywinauto or whatever it's called are really limited in terms of what they're capable of doing (not enough!), or AutoKey is just insanely complex with so many files being needed versus just one master file that one can use with AutoHotkey (which I also use at my Windows-mandated workplace).

For example, one frequently used script of mine in AutoHotkey/Keysharp purges the clipboard's URL of all known trackers before pasting, even doing HTML-decoding as needed if encoding is detected. I haven't been able to find anything that can as easily do this on Linux, though I suppose I could poke around more, or if worse comes to worst, try to have an AI build a cross-platform one, haha.

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

Linux Mint

355 readers
2 users here now

A community for news and discussion about linux mint

founded 2 years ago
MODERATORS