The base of the config, copied from /etc/X11/xinit/xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
Set Caps Lock
to Control
setxkbmap -option 'ctrl:nocaps'
Set monitors resolution and refresh rate
main=DisplayPort-0
if xrandr | grep "$main connected"; then
xrandr --output "$main" --mode 2560x1080 --rate 74.99
fi
Set the background. I am currently using stumpwm
to set this right now, leaving this here in case I decide to put it here again
# nitrogen --head=0 --set-zoom-fill wallpapers/night.png
# nitrogen --head=1 --set-zoom-fill wallpapers/night.png
# nitrogen --head=2 --set-zoom-fill wallpapers/night.png
# nitrogen --set-scaled wallpapers/atlantisnebula10-5745-1200.png
# nitrogen --set-scaled wallpapers/cathedralpillars.jpg
# xsetroot -solid "#5e81ac" # the darkest 'Frost' color from nord
Now we can start the WM
exec stumpwm
#exec qtile