add systemctl fallbacks for non-systemd systems

This commit is contained in:
end-4
2024-03-19 17:46:32 +07:00
parent 17efca69f7
commit fd84ecc86c
5 changed files with 17 additions and 17 deletions
+5 -5
View File
@@ -6,31 +6,31 @@
}
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"action" : "systemctl hibernate || loginctl hibernate",
"text" : "save",
"keybind" : "h"
}
{
"label" : "logout",
"action" : "killall Hyprland",
"action" : "pkill Hyprland || pkill sway || pkill niri || loginctl terminate-user $USER",
"text" : "logout",
"keybind" : "e"
}
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"action" : "systemctl poweroff || loginctl poweroff",
"text" : "power_settings_new",
"keybind" : "s"
}
{
"label" : "suspend",
"action" : "systemctl suspend",
"action" : "systemctl suspend || loginctl suspend",
"text" : "bedtime",
"keybind" : "u"
}
{
"label" : "reboot",
"action" : "systemctl reboot",
"action" : "systemctl reboot || loginctl reboot",
"text" : "restart_alt",
"keybind" : "r"
}