All these files can be found in my dotfile repo
# First we must create the script we want to execute
# scripts should be stored in your $HOME/.local/bin
# The code below is called 'essentials' in my repo
#!/bin/sh
# Execute essential script commands for startup
# speed up the x server
xset r rate 300 50 &
# make CapsLock behave like Ctrl:
setxkbmap -option ctrl:nocaps
# make short-pressed Ctrl behave like Escape:
# Default timeout is 500ms
xcape -t 300 -e 'Control_L=Escape'
# name: startup-scripts.desktop
# Remember to change your path to match your system
# .desktop files are just .ini files, you cannot use env variables
# everything in config files is unfortunetely "hardcoded"
[Desktop Entry]
Type=Application
Name=Essentials
Comment="important start up script"
Exec="/home/matt/.local/bin/essentials"
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Super useful! Thanks Matt!