User-defined key mappings through xmodmap does not persist after waking from suspend.
Steps taken: Created a custom command in ~/.config/autostart that runs xmodmap [USER]/.Xmodmap where ~/.Xmodmap is the custom key mapping. Logging in starting the machine executes the custom command without a problem.
Expected behaviour: The xmodmap custom command should also be executed logging in after being suspended.
Actual behaviour: The 'xmodmap' custom command is not executed when logged in after waking from suspend. Manually executing xmodmap ~/.Xmodmap is necessary after every login.
Issue
User-defined key mappings through
xmodmap
does not persist after waking from suspend.Steps taken: Created a custom command in
~/.config/autostart
that runsxmodmap [USER]/.Xmodmap
where~/.Xmodmap
is the custom key mapping. Logging in starting the machine executes the custom command without a problem.Expected behaviour: The
xmodmap
custom command should also be executed logging in after being suspended.Actual behaviour: The 'xmodmap' custom command is not executed when logged in after waking from suspend. Manually executing
xmodmap ~/.Xmodmap
is necessary after every login.Environment
OS: elementary OS 5.1.7 Hera (Fresh install)