Schlafen auf SUPER + SHIFT + L mit Lockscreen und nach 5 min Lock nach 10 Schlafen.
This commit is contained in:
17
.config/hypr/hypridle.conf
Normal file
17
.config/hypr/hypridle.conf
Normal 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
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user