My old laptop's keyboard has a dead Space key.
I have found that with the commands:
xmodmap -e "keysym Alt_L = Space"
xmodmap -e "keysym Super_L = Alt_L"
I can do the job,as I have to map the space to it's nearest key, thus to Alt, and then to remap the Alt key.
My question is, how can I run it on every boot? Also, I created a .sh file with these two commands, to execute in my desktop but it does nothing.
– Aggelos Mhsenoiazei Apr 28 '15 at 06:35Exec=xmodmap -e "keysym Alt_L = space"
but if i place the second Exec likeExec=xmodmap -e "keysym Super_L = Alt_L"
then in some way it cancels the first. Should I place it in another file or what?Exec=sh -c "xmodmap -e 'keysym Alt_L = space' && xmodmap -e 'keysym Super_L = Alt_L'"
, but I recommend you to use this commands in shell script and place this script in /usr/local/bin/ – imraro Apr 28 '15 at 08:22