Start adding SWWW config

This commit is contained in:
Evie Litherland-Smith 2024-12-06 06:37:24 +00:00
parent eb358c7ba3
commit 780838e8a0
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ swww ];
}

View file

@ -0,0 +1,28 @@
#!/bin/sh
# This allows you to control which image to init the daemon with according
# to the time of day. You may change the match cases as you see fit.
# This currently only takes hours into account, but it should be easy to
# modify to also use minutes, or days of the week, if you want.
#
# Use it simply by calling this script instead of swww-daemon
case $(date +%H) in
00 | 01 | 02 | 03 | 04 | 05 | 06 | 07) # First 8 hours of the day
# Uncomment below to setup the image you wish to display as your
# wallpaper if you run this script during the first 8 hours of the
# day
# swww-daemon && swww img path/to/img
;;
08 | 09 | 10 | 11 | 12 | 13 | 14 | 15) # Middle 8 hours of the day
# Same as above, but for the middle 8 hours of the day
# swww-daemon && swww img path/to/img
;;
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23) # Final 8 hours of the day
# Same as above, but for the final 8 hours of the day
# swww-daemon && swww img path/to/img
;;
esac