diff --git a/home/scripts/x-root-datetime.sh b/home/scripts/x-root-datetime.sh new file mode 100755 index 0000000..e74443c --- /dev/null +++ b/home/scripts/x-root-datetime.sh @@ -0,0 +1,4 @@ +#!/bin/sh +while true; do + sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% xsetroot -name % +done diff --git a/modules/dwm.nix b/modules/dwm.nix index 925a1d3..87ecb2c 100644 --- a/modules/dwm.nix +++ b/modules/dwm.nix @@ -23,6 +23,12 @@ in fade = false; }; + systemd.user.services.xrootdatetime = { + script = builtins.readFile ../home/scripts/x-root-datetime.sh; + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + }; + environment.systemPackages = with pkgs; [ dmenu ];