Show OSD feedback when rebooting or shutting down
Adds named reboot and shutdown OSD icons, and gives the touchscreen toggle a proper gesture-tap glyph instead of the restart arrow it was accidentally using. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
bf15e896b9
commit
c99c723b67
@@ -8,6 +8,8 @@
|
||||
# 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
|
||||
|
||||
omarchy-osd -i reboot -m "Rebooting…" -d 5000
|
||||
|
||||
omarchy-state clear re*-required
|
||||
|
||||
# Now close all windows
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
# scope cannot terminate it before it runs.
|
||||
systemd-run --user --collect --quiet --on-active="2s" --timer-property=AccuracySec=100ms systemctl poweroff --no-wall || exit 1
|
||||
|
||||
omarchy-osd -i shutdown -m "Shutting down…" -d 5000
|
||||
|
||||
omarchy-state clear re*-required
|
||||
|
||||
# Now close all windows
|
||||
|
||||
@@ -13,7 +13,9 @@ function iconFor(name, percent) {
|
||||
if (n === "keyboard") return ""
|
||||
if (n === "brightness" || n === "display") return ""
|
||||
if (n === "touchpad") return ""
|
||||
if (n === "touch" || n === "touchscreen") return ""
|
||||
if (n === "touch" || n === "touchscreen") return ""
|
||||
if (n === "reboot" || n === "restart") return ""
|
||||
if (n === "shutdown" || n === "power" || n === "poweroff") return ""
|
||||
if (n === "media" || n === "player") return ""
|
||||
if (n === "media-source" || n === "player-source") return ""
|
||||
if (n === "media-play" || n === "player-play") return ""
|
||||
|
||||
Reference in New Issue
Block a user