Add opt-in session save and restore support

This commit is contained in:
cheerfulScumbag 2026-03-22 22:26:25 +00:00
parent 225fbda574
commit cf197c5bf2
6 changed files with 887 additions and 0 deletions

View file

@ -78,6 +78,17 @@ no_border_when_single=0
axis_bind_apply_timeout=100
focus_on_activate=1
idleinhibit_ignore_visible=0
# Restore and save session state across compositor restarts.
# Disabled by default to preserve Mango's current behavior.
# Minimized restore is currently unsupported.
# Restore expects target outputs to already exist before clients map.
session_restore=0
# Relaunch mapping used when Mango cannot infer a launch command from a client.
# Format: session_launch=app_id|command
# or: session_launch=app_id|title|command
# session_launch=foot|foot
# session_launch=foot|gamma|foot -a foot -T gamma -e sh -lc "sleep 600"
# session_launch=org.kde.dolphin|dolphin .
sloppyfocus=1
warpcursor=1
focus_cross_monitor=0