From e55c1f32b383c53d12dc7c2b3c5e2e6ccb146cdc Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 18 Nov 2026 17:04:57 +0100 Subject: feat(services): one drawer page to start, stop and restart services Running things is a runtime operation, so it belongs in the drawer, not the settings window. The drawer's deck-it tile and keystone's Shells page become one Services tile: every quickshell shell, deck-it, and the desktop's long-running daemons (desktop-assistant, cal-notif, tv-mpris, mail-watcher, mail-notify, hypridle, hyprsunset, the polkit agent, notifyd, playerctld, conky and cliphist's watcher), each with Start, Stop and Restart. A daemon's start command is its enabled autostart.lua line, run through hyprctl dispatch hl.dsp.exec_cmd as Autostart's Try does, so conky keeps its workspace rule and no command is copied out of autostart.lua. Services.js holds only the label, the piece of the line that finds it and the pgrep/pkill arguments. Stop waits up to 5s for the process to exit, which hyprsunset needs to free Hyprland's CTM manager. -f patterns bracket a letter so pgrep and pkill never match the sh that runs them. Checked: test_services.js; the pgrep list reports all twelve daemons running; a playerctld restart through the same command came back under a new pid. QML's JS engine has no Array.flatMap, hence the concat. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index be58ef3..e91dc54 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,9 +12,9 @@ any of them runs alone, and running one does not require the others. `desktop/` modules. desktop/ the drawer (SUPER alone): user details, sound, mail, VMs, status, - performance, clipboard, updates; the Sonix player; and the settings + performance, clipboard, updates, services; the Sonix player; and the settings window for pages set once: wallpaper, transitions, theme, theme status, - icons, sunset, idle (the former appearance shell), notifications, autostart, shells, + icons, sunset, idle (the former appearance shell), notifications, autostart, the assistant's daemon and presets, qtmaildir, git, Hyprland's keyboard shortcuts, options and monitors, fonts, the Sonix boot logo, deck-it (the tablet dashboard's autostart and config), -- cgit v1.2.3