Session settings
Use exec_once and exec to start programs with the session. Locking and idle handling use external tools.
Autostart
exec_once=waybar
exec_once=mako
exec_once=swaybg -i ~/wallpaper.png
exec=~/.config/dragonfruit/reload.sh
exec_once runs once at startup. exec runs again at each reload.
Idle and locking
Dragonfruit supports idle notification, idle inhibit and session lock, so swayidle and swaylock work.
exec_once=swayidle -w timeout 300 'swaylock -f' timeout 600 'dfmsg dispatch sleep_monitor,eDP-1' resume 'dfmsg dispatch wakeup_monitor,eDP-1'
Lid switch
switchbind=lid_on,spawn,swaylock -f
Set HandleLidSwitch=ignore in /etc/systemd/logind.conf if logind should not act on the lid.
Quitting
Super + M quits by default. You can also run dfmsg dispatch quit.