#!/bin/sh

# keyboard layout
setxkbmap dvorak &

# wallpaper
~/.fehbg &

# compositor
picom &

# cursor
xsetroot -cursor_name left_ptr

# modmap because xinit won't do it
xmodmap -pke $HOME/.config/x11/.Xmodmap

# handle some nvidia stuff for archmetabox
HOST=$(cat /etc/hostname)
if [ "$HOST" == "archmetabox" ] ; then
        # this is specifically for the laptop so check hostname
        xrandr --setprovideroutputsource modesetting NVIDIA-G0
        xrandr --auto
fi

autostart=""

for program in $autostart; do
	pidof -s "$progam" || "$program" &
done >/dev/null 2>&1
