From ac719903c0c51657a00efc6ee07a183c6b66eaf6 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 14 Feb 2026 22:47:13 -0500 Subject: [PATCH] fix(scripts): inline wp to ctl --- config/hypr/hyprland.conf | 2 ++ home/modules/hyprland.nix | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index d4d0eac..a659b28 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -59,6 +59,8 @@ input { exec-once = dunst exec-once = wl-paste --watch cliphist store +exec-once = [ -f "${XDG_PICTURES_DIR:-$HOME/Pictures}/Screensavers/wallpaper.jpg" ] || ctl wallpaper wall +exec-once = [ -f "${XDG_PICTURES_DIR:-$HOME/Pictures}/Screensavers/lock.jpg" ] || ctl wallpaper lock exec-once = hyprpaper exec-once = hypridle exec-once = hypr windowrules diff --git a/home/modules/hyprland.nix b/home/modules/hyprland.nix index f38b349..86156b2 100644 --- a/home/modules/hyprland.nix +++ b/home/modules/hyprland.nix @@ -85,13 +85,13 @@ in xdg.configFile."hypr/hypridle.conf".text = '' general { - lock_cmd = wp lock && hyprlock + lock_cmd = ctl wallpaper lock && hyprlock after_sleep_cmd = hyprctl dispatch dpms on } listener { timeout = 300 - on-timeout = wp lock && hyprlock + on-timeout = ctl wallpaper lock && hyprlock } listener {