How do I run a script on startup?

I've got a newbie question. I'm trying to add a script to run on startup and i normally do it through crontab but crontab isn't found? Is there a good way to run something on every startup? For context the script is just this command xmodmap -e "clear Lock" to allow the caps lock, which I've set to as backspace, to auto repeat when held down
2 Replies
amel
amel3w ago
you can use a oneshot systemd service. if you want something easier with a .sh script, KDE has autostart settings and you can use an app called ignition on GNOME
Taylor Swift
Taylor SwiftOP3w ago
Ignition was the way to go! I'm new to bazzite so didn't know that was already preloaded

Did you find this page helpful?