@Blizz Include the commands to a .desktop file, which, when placed in your .config/autostart folder will lauch on startup.
In case you need it, some more detail
In your text editor, create a file with the contents:
Exec=sh -c 'xmodmap ~/.Xmodmap ; xset r rate 150 25'
Save the file in .config/autostart under a name of your choice, e.g. ‘keyboardsetting.desktop’ (extension .desktop required). This way, it should autoatically be executed when logging in to the shell.
If it does not work, try adding some delay before execution, e.g.
Exec=sh -c ‘sleep 5 ; xmodmap ~/.Xmodmap ; xset r rate 150 25’
to introduce a delay of 5 seconds before the other commands get executed (this will not delay logging in).