From 66049c965139d821747ea76960b1e91316f8110a Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 17 Oct 2026 09:54:18 +0200 Subject: desktop: a settings window, and autostart as its first page The drawer's tiles were turning into a full settings app. The drawer stays the quick area, live state and things toggled often; pages set once and left alone go to a settings window, a normal Hyprland toplevel listing them down the left. A module joins with settings: true, which also drops its tile. A gear tile and ipc call settings open|toggle reach it. Autostart edits hypr-theme's autostart.lua directly, line by line: an hl.exec_cmd line is an entry, behind -- it is disabled, everything else passes through. Edits refuse when their line moved since the parse, and writes are atomic because Hyprland reloads on every change. A wrong entry only shows at the next login, so adding is guided rather than a free text field: pick an installed app or type a command whose program must resolve on PATH before Add enables, then a workspace and silent, composed into a [workspace X silent] rule. Try runs the line through hyprctl dispatch so the rule applies as at login. Existing rows get no Try: they ran at login, and a second start stacks an instance. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/autostart/AutostartModule.qml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 desktop/modules/autostart/AutostartModule.qml (limited to 'desktop/modules/autostart/AutostartModule.qml') diff --git a/desktop/modules/autostart/AutostartModule.qml b/desktop/modules/autostart/AutostartModule.qml new file mode 100644 index 0000000..bba8aff --- /dev/null +++ b/desktop/modules/autostart/AutostartModule.qml @@ -0,0 +1,30 @@ +// 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 "../.." + +// What Hyprland launches at login, from hypr-theme's autostart.lua. Set once +// and left alone, so it lives in the settings window, not on a tile. +Module { + name: "autostart" + label: "Autostart" + // nf-fa-rocket, present in Inconsolata Nerd Font. + icon: "" + settings: true + + page: Component { + Page { + title: "Autostart" + AutostartPage { width: parent.width } + } + } +} -- cgit v1.2.3