1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 12:21:08 +01:00
This commit is contained in:
2025-07-08 20:56:40 +02:00
parent e8e165ff03
commit e4543eeb0b
4 changed files with 93 additions and 23 deletions

View File

@@ -17,7 +17,11 @@ in {
chmod o+rx ${stateDir}
cd ${stateDir}
(${pkgs.curl}/bin/curl -s -o wallpaper.tmp -z wallpaper.tmp ${lib.escapeShellArg url} && cp wallpaper.tmp wallpaper) || :
${pkgs.feh}/bin/feh --no-fehbg --bg-scale wallpaper
if [ -z $SWAYSOCK ]; then
${pkgs.feh}/bin/feh --no-fehbg --bg-scale wallpaper
else
${pkgs.sway}/bin/swaymsg -s $SWAYSOCK 'output * bg ${stateDir}/wallpaper fill'
fi
'';
startAt = "*:00,10,20,30,40,50";
serviceConfig = {