From 82c03e3055619026b5e1ec92fcf50efd9ad87034 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Wed, 9 Oct 2024 19:51:25 -0700 Subject: [PATCH] dwm: getExe and inherit --- modules/dwm.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/dwm.nix b/modules/dwm.nix index 49a0eec..e9d4df8 100644 --- a/modules/dwm.nix +++ b/modules/dwm.nix @@ -1,6 +1,8 @@ { lib, config, pkgs, inputs, ... }: let + inherit (lib) getExe; + cfg = config.snowhawk.dwm; in { @@ -37,7 +39,7 @@ in systemd.user.services.xrootdatetime = { script = '' while true; do - sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% ${pkgs.xorg.xsetroot}/bin/xsetroot -name % + sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% ${getExe pkgs.xorg.xsetroot} -name % done ''; wantedBy = [ "graphical-session.target" ]; @@ -46,7 +48,7 @@ in systemd.user.services.fehbg = { script = '' - ${pkgs.feh}/bin/feh --no-fehbg --bg-scale '${inputs.backgrounds}/bg-none-nord.webp' + ${getExe pkgs.feh} --no-fehbg --bg-scale '${inputs.backgrounds}/bg-none-nord.webp' ''; wantedBy = [ "graphical-session.target" ]; partOf = [ "graphical-session.target" ];