forked from Shinonome/dots-hyprland
add systemctl fallbacks for non-systemd systems
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
$lock_cmd = pidof hyprlock || hyprlock
|
||||
$suspend_cmd = systemctl suspend
|
||||
$suspend_cmd = systemctl suspend || loginctl suspend
|
||||
|
||||
general {
|
||||
lock_cmd = $lock_cmd
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user