From c00deae969f5a722bf676ebc458db2a9a054bca2 Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Wed, 30 Apr 2025 16:03:45 +0200 Subject: [PATCH] Update hyrpidle: now starts with systemd since we are using uwsm --- .config/hypr/hypridle.conf | 8 +++----- .config/hypr/hyprland.conf | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf index 2662c07..1189492 100644 --- a/.config/hypr/hypridle.conf +++ b/.config/hypr/hypridle.conf @@ -1,15 +1,13 @@ general { lock_cmd = pidof hyprlock || hyprlock # dbus/sysd lock command (loginctl lock-session) #unlock_cmd = notify-send "unlock!" # same as above, but unlock - before_sleep_cmd = playerctl stop; hyprlock # command ran before sleep - #after_sleep_cmd = notify-send "Awake!" # command ran after sleep - ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) - ignore_systemd_inhibit = false # whether to ignore systemd-inhibit --what=idle inhibitors + before_sleep_cmd = playerctl stop; loginctl lock-session # command ran before sleep + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. } listener { timeout = 360 # in seconds - on-timeout = hyprlock # command to run when timeout has passed + on-timeout = loginctl lock-session # command to run when timeout has passed #on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired. } diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 40bca2c..c9c6fd2 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -30,7 +30,6 @@ exec-once = uwsm app -- dunst exec-once = uwsm app -- batsignal -b -e -w 30 -c 20 -d 10 -f 100 exec-once = uwsm app -- nm-applet exec-once = uwsm app -- sleep 1 && blueman-applet -exec-once = uwsm app -- hypridle exec-once = uwsm app -- sleep 2 && udiskie --tray # automount external hdds or usbs exec-once = uwsm app -- xwaylandvideobridge