mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
15 lines
476 B
Bash
Executable File
15 lines
476 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Shut down after closing application windows
|
|
# omarchy:examples=omarchy shutdown | omarchy system shutdown
|
|
# omarchy:aliases=omarchy shutdown
|
|
|
|
omarchy-state clear re*-required
|
|
|
|
# Schedule the shutdown to happen after closing windows (detached from terminal)
|
|
nohup bash -c "sleep 2 && systemctl poweroff --no-wall" >/dev/null 2>&1 &
|
|
|
|
# Now close all windows
|
|
omarchy-hyprland-window-close-all
|
|
sleep 1 # Allow apps like Chrome to shutdown correctly
|