#!/bin/bash

_hostname="$(hostname)"

xmodmap ~/.Xmodmap

# Source scripts in /etc/X11/xinit/xinitrc.d/
if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
        [ -x "$f" ] && . "$f"
    done
    unset f
fi

redshift -l 51.1180:4.0012 &
unclutter &

eval $(/usr/bin/gnome-keyring-daemon --start --components=secrets)
export GPG_AGENT_INFO SSH_AUTH_SOCK

case $_hostname in
    drd)
        # feh --bg-tile ~/pictures/wallpaper-2311191.png
        # exec sbcl --noprint --non-interactive \
        #      --eval "(ql:quickload \"stumpwm\")" \
        #      --eval "(stumpwm:stumpwm)"
        exec awesome
        # xchainkeys &
        # mowedline &
        # exec herbstluftwm
        # sxhkd &
        # tint2 &
        # exec bspwm
        # exec i3
        ;;
    phoenix)
        exec awesome
        ;;
esac