From 20dca0e8a84ba5e12caf06cac2c8aa6079daf615 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 11 Nov 2026 20:29:58 +0100 Subject: feat(deckit): tablet screen dimming settings The Dashboard page gains a Tablet screen section for deck-it's new [tablet] dim_after and dim_brightness, and both are searchable. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/deckit/DeckItDashboardModule.qml | 3 ++- desktop/modules/deckit/DeckItDashboardPage.qml | 7 +++++++ desktop/modules/deckit/README.md | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'desktop/modules') diff --git a/desktop/modules/deckit/DeckItDashboardModule.qml b/desktop/modules/deckit/DeckItDashboardModule.qml index 3ad8cf6..ca033f8 100644 --- a/desktop/modules/deckit/DeckItDashboardModule.qml +++ b/desktop/modules/deckit/DeckItDashboardModule.qml @@ -22,9 +22,10 @@ Module { group: "deck-it" dirty: DeckIt.store.dirty keywords: ["deck-it", "tablet", "dashboard", "modules", "panels", "actions", "icons", "hardware", - "network", "battery", "cpu", "gpu", "sensor"] + "network", "battery", "cpu", "gpu", "sensor", "dim", "brightness", "backlight"] readonly property var fields: [ ["modules", "", "Dashboard parts"], ["dashboard", "actions", "Dashboard actions"], + ["tablet", "dim_after", "Dim after"], ["tablet", "dim_brightness", "Dim brightness"], ["hardware", "net", "Network interface"], ["hardware", "battery", "Battery"], ["hardware", "cpu_sensor", "CPU sensor"], ["hardware", "gpu", "GPU"], ["hardware", "gpu_mem_total", "GPU memory"]] diff --git a/desktop/modules/deckit/DeckItDashboardPage.qml b/desktop/modules/deckit/DeckItDashboardPage.qml index 060df7e..14aba95 100644 --- a/desktop/modules/deckit/DeckItDashboardPage.qml +++ b/desktop/modules/deckit/DeckItDashboardPage.qml @@ -68,6 +68,13 @@ Column { } } + Heading { text: "Tablet screen" } + Setting { store: col.st; section: "tablet"; key: "dim_after"; label: "Dim after"; kind: "int"; min: 0; max: 3600 + placeholder: col.st.placeholder("tablet", "dim_after") + hint: "Seconds without a touch before the tablet's backlight goes down; a touch brings it back. 0 turns it off." } + Setting { store: col.st; section: "tablet"; key: "dim_brightness"; label: "Dim brightness"; kind: "int"; min: 0; max: 255 + placeholder: col.st.placeholder("tablet", "dim_brightness"); hint: "Backlight while dimmed, 0 to 255." } + Heading { text: "Hardware" } Small { text: "Each is auto, or a fixed value such as wlan0, BAT1 or coretemp." } Setting { store: col.st; section: "hardware"; key: "net"; label: "Network interface" diff --git a/desktop/modules/deckit/README.md b/desktop/modules/deckit/README.md index 427f753..197b382 100644 --- a/desktop/modules/deckit/README.md +++ b/desktop/modules/deckit/README.md @@ -9,8 +9,8 @@ tablet dashboard, its own repo): whether it starts at login, and its Advanced (ports, Hyprland config, fallback icon theme). Its header carries deck-it's state and Restart. - Dashboard (`DeckItDashboardModule`, `DeckItDashboardPage`): the - Dashboard parts (the modules without a tab), the action icons, and - Hardware. `Modules.js` says which of deck-it's `[modules]` are tabs and + Dashboard parts (the modules without a tab), the action icons, the + tablet screen's idle dimming, and Hardware. `Modules.js` says which of deck-it's `[modules]` are tabs and gives each a readable name; a module it does not list lands with the Dashboard parts. - Windows (`DeckItWindowsModule`, `DeckItWindowsPage`): the launchers and the -- cgit v1.2.3