diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-30 20:37:06 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-30 20:37:06 +0100 |
| commit | 3c747053dd140ba4f2d53155939e4a895ec8c6e9 (patch) | |
| tree | 98dd0c938d45ab0ba1aaba0b66c861c7ce585b4c /desktop/modules/monitors/MonitorsPage.qml | |
| parent | 29d0c022b1557cef6b93efbc76734b816b92f62e (diff) | |
| download | quickshell-3c747053dd140ba4f2d53155939e4a895ec8c6e9.tar.gz quickshell-3c747053dd140ba4f2d53155939e4a895ec8c6e9.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/monitors/MonitorsPage.qml')
| -rw-r--r-- | desktop/modules/monitors/MonitorsPage.qml | 23 |
1 files changed, 23 insertions, 0 deletions
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. <danix@danix.xyz> +// +// 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 + } +} |
