Vendor the command set the menu and shell depend on
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# blob:summary=Reboot after closing application windows
|
||||
# blob:examples=blob reboot | blob system reboot
|
||||
# blob:aliases=blob reboot
|
||||
|
||||
# Schedule the reboot in the user manager so closing the terminal's systemd
|
||||
# scope cannot terminate it before it runs.
|
||||
systemd-run --user --collect --quiet --on-active="2s" --timer-property=AccuracySec=100ms systemctl reboot --no-wall || exit 1
|
||||
|
||||
blob-osd -i reboot -m "Rebooting" -d 5000
|
||||
|
||||
blob-state clear re*-required
|
||||
|
||||
# Now close all windows
|
||||
blob-hypr-window-close-all
|
||||
sleep 1 # Allow apps like Chrome to shutdown correctly
|
||||
Reference in New Issue
Block a user