I need to run “xmodmap ~/.Xmodmap” on login
I put this on .xinitrc
[ -f ~/.Xmodmap ] && { sleep; xmodmap ~/.Xmodmap; } &
also tried a script but not working
Is the script executable:
chmod +x <path_to_script>
also not working
I think I didn’t create the script correctly
XDG runs scripts in ~/.config/autostart
upon login in a X session. To load xmodmap config upon login, add the following to ~/.config/autostart/xmodmap.desktop
:
[Desktop Entry]
Name[en_US]=Xmodmap
Comment[en_US]=xmodmap ~/.Xmodmap
Exec=/usr/bin/xmodmap ~/.Xmodmap
Icon=application-default-icon
X-GNOME-Autostart-enabled=true
Type=Application
I did that and make it executable but also not working
thnks for your help anyway