From 2e7745876625fc9fc9fdc7e549c340cd280dca69 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 5 Oct 2026 23:33:15 +0800 Subject: [PATCH] feat(noctalia): add 10s confirm countdown to session menu actions Explicit session action lists replace the built-in defaults, so re-declare all five actions; lock stays immediate, logout/suspend/reboot/shutdown arm a 10 s countdown that a second press runs immediately. --- .../gui/base/noctalia/config/config.toml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/home/linux/gui/base/noctalia/config/config.toml b/home/linux/gui/base/noctalia/config/config.toml index c0411107..805ecdfb 100644 --- a/home/linux/gui/base/noctalia/config/config.toml +++ b/home/linux/gui/base/noctalia/config/config.toml @@ -21,6 +21,34 @@ setup_wizard_enabled = false annotate = true directory = "~/Pictures/Screenshots" +# Session (power) menu: any explicit action list replaces the built-in defaults, +# so re-declare all five default actions. Everything except lock gets a 10 s +# confirm countdown: first press arms it, press again to run now, Esc or moving away cancels. +[[shell.session.actions]] +action = "lock" +shortcut = "1" + +[[shell.session.actions]] +action = "logout" +shortcut = "2" +countdown_seconds = 10 + +[[shell.session.actions]] +action = "lock_and_suspend" +shortcut = "3" +countdown_seconds = 10 + +[[shell.session.actions]] +action = "reboot" +shortcut = "4" +countdown_seconds = 10 + +[[shell.session.actions]] +action = "shutdown" +shortcut = "5" +variant = "destructive" +countdown_seconds = 10 + # On-screen display popups: the input-method/keyboard-layout OSD shows on every # IM change (e.g. focusing an input box), so keep it clear of the top bar in the # bottom-right corner. Also moves volume, brightness, and the other OSD kinds.