aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/deckit
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/deckit')
-rw-r--r--desktop/modules/deckit/DeckItDashboardModule.qml3
-rw-r--r--desktop/modules/deckit/DeckItDashboardPage.qml7
-rw-r--r--desktop/modules/deckit/README.md4
3 files changed, 11 insertions, 3 deletions
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