added better suspend functionality

main
The_miro 2025-10-16 23:25:39 +02:00
parent 4c6e7b788b
commit 608c8fd3e7
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,8 @@
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
after_sleep_cmd = systemctl restart fprintd.service ;; hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 120

View File

@ -1,3 +1,3 @@
#!/bin/zsh
echo "poweroff\nreboot\nhyprctl dispatch exit\nhyprlock\nhyprctl reload\nkitty ~/Dotfiles/desktopenvs/hyprland/scripts/helpmenu.sh\nkitty nvim ~/.config/binds.conf\n" | wofi --show=dmenu | zsh
echo "poweroff\nreboot\nsystemctl suspend-then-hibernate\nsystemctl hibernate\nsystemctl sleep\nhyprctl dispatch exit\nhyprlock\nhyprctl reload\nkitty ~/Dotfiles/desktopenvs/hyprland/scripts/helpmenu.sh\nkitty nvim ~/.config/binds.conf\n" | wofi --show=dmenu | zsh