#!/bin/sh

: "${DISPLAY:=:0}"
export DISPLAY

if [ -f "$HOME/.resolution.config" ]; then
    RES="$(sed -n '1p' "$HOME/.resolution.config")"
    if [ -n "$RES" ]; then
        xrandr -s "$RES"
    fi
fi

xrdb -merge "$HOME/.Xresources"

exec startfluxbox