I have an xmodmap file
~/.Xmodmap and it works perfectly. I put it in the startup applications app in ubuntu 19.10 like this
xmodmap /home/yasser/.Xmodmap and it works when first booting up. However, after suspend, the file just doesn't work. I tried creating a script in
/usr/lib/pm-utils/sleep.d/999zxmodmap with this content:
#!/bin/bash case $1 in pre) exit 0 ;; post) export DISPLAY=:0 sleep 10 xmodmap /home/yasser/.Xmodmap ;; esac
I saw this suggested somewhere else, but this didn't work.
Here is my
~/.Xmodmap file if that can help:
keycode 66 = Mode_switch keysym j = j J Left keysym l = l L Right keysym i = i I Up keysym k = k K Down keysym h = h H Home keysym semicolon = semicolon colon End
Thanks a lot in advance for your help.