From 3c747053dd140ba4f2d53155939e4a895ec8c6e9 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 30 Oct 2026 20:37:06 +0100 Subject: monitors: settings module, try live then keep or revert Apply evals each monitor's hl.monitor line, one call each because eval wraps its argument in a return. Keep writes sections/monitors.lua whole; Revert or 15s without an answer is hyprctl reload, which reapplies the untouched file. A refusal also reloads, since an earlier monitor's eval may have gone through. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/monitors/MonitorsPage.qml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 desktop/modules/monitors/MonitorsPage.qml (limited to 'desktop/modules/monitors/MonitorsPage.qml') diff --git a/desktop/modules/monitors/MonitorsPage.qml b/desktop/modules/monitors/MonitorsPage.qml new file mode 100644 index 0000000..3df7b1c --- /dev/null +++ b/desktop/modules/monitors/MonitorsPage.qml @@ -0,0 +1,23 @@ +// Copyright (C) 2026 Danilo M. +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +import QtQuick +import "../.." + +Column { + id: page + required property QtObject mod + Text { + text: page.mod.draft.map(d => d.name + " " + d.mode).join(", ") + font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2 } + color: Theme.text + } +} -- cgit v1.2.3