DRAGONFRUIT PROJECT Wayland compositor · Linux Codeberg repository ↗
dragonfruitWayland compositor

Session settings

Autostart, idle, locking and lid switches

Session settings

Use exec_once and exec to start programs with the session. Locking and idle handling use external tools.

SECTION 03 · Configuration
Scope: Lifecycle & Idle
Repository and source ↗

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.

← Previous

Environment

Next →

Wayland protocols