Schlafen auf SUPER + SHIFT + L mit Lockscreen und nach 5 min Lock nach 10 Schlafen.

This commit is contained in:
2026-03-28 23:55:50 +01:00
parent 946c5dcaf6
commit 203a97ff21
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
general {
lock_cmd = pidof hyprlock || hyprlock # Startet hyprlock, falls es noch nicht läuft
before_sleep_cmd = loginctl lock-session # Sorgt dafür, dass IMMER gesperrt wird, bevor der PC schläft
after_sleep_cmd = hyprctl dispatch dpms on # Schaltet den Monitor nach dem Aufwecken wieder sauber ein
}
# 1. Stufe: Bildschirm sperren (nach 5 Minuten = 300 Sekunden)
listener {
timeout = 300
on-timeout = loginctl lock-session
}
# 2. Stufe: PC in den Sleep-Modus schicken (nach 10 Minuten = 600 Sekunden)
listener {
timeout = 600
on-timeout = systemctl suspend
}

View File

@@ -47,6 +47,7 @@ $menu = wofi
exec-once = $terminal
exec-once = waybar
exec-once = hyprpaper
exec-once = hypridle
# exec-once = $terminal
# exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox
@@ -259,6 +260,7 @@ bind = $mainMod, J, layoutmsg, togglesplit # dwindle
bind = $mainMod SHIFT, B, exec, ~/.config/waybar/refrech.sh
bind = $mainMod, L, exec, hyprlock
bind = $mainMod SHIFT, L, exec, systemctl suspend
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l