IPC
Everything the shell does can be asked for from outside it. A keybind, a click and a terminal command are the same code path.
qs -c vela ipc show # everything, liveqs -c vela ipc call shell toggle launcher # dashboard, launcher, overview, clipboard, # capture, calendar, power, wallpaper, # settings, keybinds, ...qs -c vela ipc call shell altTab 1qs -c vela ipc call bar popout network # bluetooth, output, network, power, # workspaces, notifications, privacyqs -c vela ipc call bar toggleStatus # fold the status items awayqs -c vela ipc call notifs toggleDnd # or clearqs -c vela ipc call nightlight toggle # or resume, or: set 4000qs -c vela ipc call wallpaper apply <path> # or revertqs -c vela ipc call lock lock # or isLockedWith no shell running these exit with 255. That is what lets hypridle fall back to hyprlock, so an idle machine still locks if the shell has died.