# Autostart applications
# Device: {{ .deviceProfile }}

# Polkit agent (GUI password prompts)
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

# XWayland support
exec-once = xwayland-satellite

# System tray & bar
exec-once = nm-applet &
exec-once = qs

# Notifications
exec-once = swaync

# Wallpaper & idle
exec-once = hyprpaper
exec-once = hypridle

# Clipboard
exec-once = copyq --start-server

# User apps
exec-once = zen-browser
exec-once = ~/.local/bin/launch-on-workspace 2 chromium-work chromium --profile-directory=Default --class=chromium-work
exec-once = ~/.local/bin/launch-on-workspace "special:llm" chromium-llm chromium --user-data-dir=$HOME/.config/chromium-llm --class=chromium-llm
exec-once = ~/.local/bin/launch-on-workspace "special:llm" Heynote heynote
exec-once = ~/.local/bin/launch-on-workspace "name:tg" org.telegram.desktop Telegram
exec-once = ~/.local/bin/launch-on-workspace "name:tg" Slack slack
exec-once = ~/.local/bin/launch-on-workspace "name:tg" org.mozilla.Thunderbird thunderbird
exec-once = ~/.local/bin/launch-on-workspace "name:media" spotify spotify
exec-once = ~/.local/bin/launch-on-workspace "special:org" ticktick ticktick

{{- if eq .deviceProfile "desktop" }}
# Desktop: Hyprland plugins
exec-once = hyprpm reload -n
{{- else }}
# Laptop: Power management
exec-once = power-profiles-daemon || true
{{- end }}
