aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/shell.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-17 09:54:18 +0200
committerDanilo M. <danix@danix.xyz>2026-10-17 09:54:18 +0200
commit66049c965139d821747ea76960b1e91316f8110a (patch)
tree45ac7a387ea02c1cc8d26e104f6e69a96d3880ed /desktop/shell.qml
parent4513a506fc575f880db80f05bb3a9cdf7dc100e0 (diff)
downloadquickshell-66049c965139d821747ea76960b1e91316f8110a.tar.gz
quickshell-66049c965139d821747ea76960b1e91316f8110a.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/shell.qml')
-rw-r--r--desktop/shell.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/desktop/shell.qml b/desktop/shell.qml
index f7a1713..bceb568 100644
--- a/desktop/shell.qml
+++ b/desktop/shell.qml
@@ -19,6 +19,7 @@ import Quickshell.Wayland
import QtQuick
import "modules/ai"
import "modules/appearance"
+import "modules/autostart"
import "modules/bluetooth"
import "modules/clipboard"
import "modules/git"
@@ -74,9 +75,24 @@ ShellRoot {
UserModule {},
GitModule {},
NotesModule {},
+ // The settings window's entry point, a tile like the others.
+ Module {
+ name: "settings"
+ // nf-fa-gear, present in Inconsolata Nerd Font.
+ icon: "\uf013"
+ function activate() { settings.show(""); }
+ },
+ AutostartModule {},
]
}
+ // Pages set once and left alone, the modules marked `settings`, in a
+ // window of their own. See Settings.qml.
+ Settings {
+ id: settings
+ modules: drawer.modules
+ }
+
// The island on DP-1. It reads the sound module's service rather than
// binding PipeWire a second time.
Island {
@@ -105,6 +121,14 @@ ShellRoot {
function close() { drawer.close(); }
}
+ // qs -p <this dir> ipc call settings open autostart
+ // qs -p <this dir> ipc call settings toggle
+ IpcHandler {
+ target: "settings"
+ function open(page: string) { settings.show(page); }
+ function toggle() { if (settings.open) settings.close(); else settings.show(""); }
+ }
+
// qs -p <this dir> ipc call assistant toggle -> SUPER+Home
IpcHandler {
target: "assistant"