Simplify shell restart around quickshell instance management
omarchy-restart-shell now kills by config dir via quickshell kill and relaunches with --no-duplicate, polling kill until every instance is gone since kill returns without waiting and -n silently exits if one remains. The locked-session refusal reads Hyprland monitor state alone, which covers a hung shell holding the lock; the redundant shell IPC probe, availability guards, and omarchy-shell path indirection are gone. Shell IPC calls now time out (2s default, OMARCHY_SHELL_IPC_TIMEOUT to override) so probing an unresponsive shell fails fast instead of hanging the caller. omarchy-hyprland-launch checks dispatch output for "ok" rather than the exit code, which is 0 even on Lua errors, so a failed dispatch falls through to the bash -lc fallback instead of silently launching nothing. The Quattro upgrade cutover delegates to omarchy-restart-shell instead of carrying its own copy of the lock check, pkill, and readiness loop. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
3edf254a12
commit
17c8af3f14
+2
-2
@@ -180,8 +180,8 @@ quickshell ipc -p $OMARCHY_PATH/shell call shell ping
|
||||
```
|
||||
|
||||
Hyprland autostart launches the shell directly with `quickshell -p
|
||||
$OMARCHY_PATH/shell`. Use `omarchy-restart-shell` (`quickshell reload`) to
|
||||
reload the long-running shell process.
|
||||
$OMARCHY_PATH/shell`. Use `omarchy-restart-shell` to stop every running
|
||||
instance of that config and launch one fresh shell process.
|
||||
|
||||
A convenience wrapper, [`omarchy-shell`](../bin/omarchy-shell), forwards IPC
|
||||
calls to the running shell. It does not start the shell.
|
||||
|
||||
Reference in New Issue
Block a user