dwm: getExe and inherit

This commit is contained in:
Zynh Ludwig 2024-10-09 19:51:25 -07:00
parent 4d08e896b7
commit 82c03e3055

View file

@ -1,6 +1,8 @@
{ lib, config, pkgs, inputs, ... }: { lib, config, pkgs, inputs, ... }:
let let
inherit (lib) getExe;
cfg = config.snowhawk.dwm; cfg = config.snowhawk.dwm;
in in
{ {
@ -37,7 +39,7 @@ in
systemd.user.services.xrootdatetime = { systemd.user.services.xrootdatetime = {
script = '' script = ''
while true; do 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 done
''; '';
wantedBy = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ];
@ -46,7 +48,7 @@ in
systemd.user.services.fehbg = { systemd.user.services.fehbg = {
script = '' 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" ]; wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ]; partOf = [ "graphical-session.target" ];