#!/bin/sh
# retoor <retoor@molodetz.nl>
# Example .xinitrc for starting DWN with startx
# Copy this to ~/.xinitrc and modify as needed

export XDG_SESSION_TYPE=x11
export XDG_CURRENT_DESKTOP=DWN

# Optional: Set AI API keys
# export OPENROUTER_API_KEY="your-api-key-here"
# export EXA_API_KEY="your-exa-key-here"

# Start D-Bus session bus if not already running
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
    eval $(dbus-launch --sh-syntax)
fi

# Optional: Start compositor for transparency/shadows
# picom &

# Optional: Set wallpaper
# feh --bg-scale ~/.wallpaper.png &

# Optional: Start XFCE components for additional functionality
# xfce4-power-manager &
# xfsettingsd &

# Optional: Start polkit authentication agent
# /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &

# Optional: Start network manager applet
# nm-applet &

# Optional: Start clipboard manager
# xfce4-clipman &

exec dwn
