#
# ~/.xprofile (includes ~/.xprofile.local)
#

# Load X resources
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
[ -f ~/.Xresources.local ] && xrdb -merge ~/.Xresources.local

# Deactivate screen blanking
xset -dpms s off

# Set background color (as fallback) and wallpaper (if exists)
xsetroot -solid black
[ -f ~/.fehbg ] && sh ~/.fehbg

# Set keyboard layout
setxkbmap us altgr-intl

# Remap Context Menu key to Super
xmodmap -e "keysym Menu = Super_R"

# Register screen locker
xss-lock -- i3lock -n -eft -i ~/.wallpapers/lockscreen &

# Start polkit authentication agent
POLKIT_AUTH_AGENT=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
[ -f $POLKIT_AUTH_AGENT ] && $POLKIT_AUTH_AGENT &

# Include host-specific .xprofile
[ -f ~/.xprofile.local ] && source ~/.xprofile.local

