# vim: ft=swayconfig

# Start background services
exec doas ivpn-service
exec mako
exec pipewire
exec pipewire-pulse
exec wireplumber

# Make xdg-desktop-portal-wlr work properly
exec dbus-update-activation-environment WAYLAND_DISPLAY

# Idle configuration
exec swayidle -w \
    timeout 600 'swaylock' \
    timeout 1200 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
    before-sleep 'swaylock'

# Custom script for VPN connection before XDG autostart applications
exec ~/.config/sway/autostart.sh
