1

I use Lubuntu 18.04.

I'm trying to assign my keypad delete key to em dash permanently.

AutoKey-GTK doesn't seem to be able to handle this for some reason.

The xmodmap command works, but I'm having difficulty getting it to execute at startup to make it permanent.

I've tried (all without success):

  • Adding em dash as a phrase in AutoKey-GTK
  • Adding the xmodmap command to the Lubuntu startup programs GUI
  • Adding the command to the above as a bash script.
  • Creating .Xinitrc and .Xmodmap files as described by another poster here.
  • Adding it to the default applications list with a 15 second execution delay.
  • Creating a desktop launcher and adding that to the 'autostart' folder.
  • Adding the command script to the crontab under @reboot and running every two minutes.

So far nothing has worked.

The command is simply:

xmodmap -e "keycode 91 = emdash"

Anybody have any suggestions?

  • 2
  • Tried that too. Also didn't work. I'm having one of those moments when you wonder why everything to do with Linux is so incredibly difficult! – Daniel Rosehill Nov 01 '18 at 17:54
  • Pretty sure it is a timing issue if the command works once all is fully started up & loaded. In some extreme cases (vm?) The 15 sec. isn't enough. Start with 30 or 40 seconds, making it shorter until it breaks. – Jacob Vlijm Nov 01 '18 at 18:00
  • Tried 30 and 40 seconds. Still no success. This is very mysterious. I'm tempted to just give up! – Daniel Rosehill Nov 01 '18 at 19:25
  • Line I'm trying in Lxsession:

    https://imgur.com/a/nikkxc0

    Contents of script:

    #!/bin/bash xmodmap -e "keycode 91 = emdash" exit

    – Daniel Rosehill Nov 01 '18 at 19:27
  • I can tell you why the AutoKey attempt didn't work. Even if you're on a current version, 0.95,x, the code handling multibyte characters needs a rewrite. It is way better than it was in 0.90.4 - the version packaged by Debian - because no one at Debian is currently updating their package. – Joe Dec 23 '18 at 14:07

0 Answers0