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
+1 -1
View File
@@ -1,5 +1,5 @@
$lock_cmd = pidof hyprlock || hyprlock
$suspend_cmd = systemctl suspend
$suspend_cmd = systemctl suspend || loginctl suspend
general {
lock_cmd = $lock_cmd
+2 -2
View File
@@ -35,7 +35,7 @@ bind = Super, Q, killactive,
bind = Super+Alt, Space, togglefloating,
bind = Shift+Super+Alt, Q, exec, hyprctl kill
bind = Control+Shift+Alt, Delete, exec, pkill wlogout || wlogout -p layer-shell
bind = Control+Shift+Alt+Super, Delete, exec, systemctl poweroff
bind = Control+Shift+Alt+Super, Delete, exec, systemctl poweroff || loginctl poweroff
# Screenshot, Record, OCR, Color picker, Clipboard history
bind = Super+Shift+Alt, S, exec, grim -g "$(slurp)" - | swappy -f -
@@ -65,7 +65,7 @@ bindl= ,XF86AudioPlay, exec, playerctl play-pause
# Lock screen
bind = Super, L, exec, loginctl lock-session
bind = Super+Shift, L, exec, loginctl lock-session
bindl = Super+Shift, L, exec, sleep 0.1 && systemctl suspend
bindl = Super+Shift, L, exec, sleep 0.1 && systemctl suspend || loginctl suspend
# App launcher
bind = Control+Super, Slash, exec, pkill anyrun || anyrun