31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
use owlry::Item;
|
|
|
|
pub fn refresh() {
|
|
let items = [];
|
|
|
|
items.push(Item::new("hs-logout", "logout", "hyprshutdown")
|
|
.description("Gracefully close all apps and exit Hyprland")
|
|
.icon("system-log-out")
|
|
.keywords(["logout", "exit", "quit", "signout", "logoff"]));
|
|
|
|
items.push(Item::new("hs-reboot", "reboot",
|
|
"hyprshutdown -t \"Restarting...\" --post-cmd \"systemctl reboot\"")
|
|
.description("Gracefully close all apps and reboot")
|
|
.icon("system-reboot")
|
|
.keywords(["reboot", "restart", "reset"]));
|
|
|
|
items.push(Item::new("hs-poweroff", "poweroff",
|
|
"hyprshutdown -t \"Powering off...\" --post-cmd \"systemctl poweroff\"")
|
|
.description("Gracefully close all apps and power off")
|
|
.icon("system-shutdown")
|
|
.keywords(["poweroff", "shutdown", "halt", "off"]));
|
|
|
|
items.push(Item::new("hs-firmware", "reboot-firmware",
|
|
"hyprshutdown -t \"Restarting to firmware...\" --post-cmd \"systemctl reboot --firmware-setup\"")
|
|
.description("Gracefully close all apps and reboot to UEFI/BIOS")
|
|
.icon("computer")
|
|
.keywords(["firmware", "bios", "uefi", "setup"]));
|
|
|
|
items
|
|
}
|