From 608c8fd3e7106517fe2a91fd085524536457f01a Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 16 Oct 2025 23:25:39 +0200 Subject: [PATCH] added better suspend functionality --- desktopenvs/hyprland/hypr/hypridle.conf | 3 ++- desktopenvs/hyprland/scripts/pwr-dmenu.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/desktopenvs/hyprland/hypr/hypridle.conf b/desktopenvs/hyprland/hypr/hypridle.conf index e84ffea..dcc57d1 100644 --- a/desktopenvs/hyprland/hypr/hypridle.conf +++ b/desktopenvs/hyprland/hypr/hypridle.conf @@ -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 diff --git a/desktopenvs/hyprland/scripts/pwr-dmenu.sh b/desktopenvs/hyprland/scripts/pwr-dmenu.sh index 6b2fb94..57971f9 100755 --- a/desktopenvs/hyprland/scripts/pwr-dmenu.sh +++ b/desktopenvs/hyprland/scripts/pwr-dmenu.sh @@ -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