I'm using Lubuntu 19.04 with LXQt
I'm trying to remap the Caps-Lock and Escape keys. I have found the commands I needed to make that happen and I've made an executable script for them. If I run the script, it works; the problem is that I can't find the way to run the script on boot.
Here is my script, which is located in
#!/bin/bash setxkbmap -option caps:none xmodmap -e "keycode 9 = Caps_Lock" xmodmap -e "keycode 66 = Escape"
Now, I have already tried with a
cron job, running:
crontab -e @reboot /usr/local/bin/my_script
I also tried running the previous command as
sudo crontab -e
or for my specific user:`
sudo crontab -u user -e
I gave up using
cron and tried adding the specific commands to
/etc/init.d/rc.local and making the file executable using
chmod, as I had to create the file.
Also, I tried adding it on
What can I do to make this work?