Start adding SWWW config
This commit is contained in:
parent
eb358c7ba3
commit
780838e8a0
4
system/home/swww/default.nix
Normal file
4
system/home/swww/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [ swww ];
|
||||||
|
}
|
28
system/home/swww/swww_init_according_to_time_of_day.sh
Normal file
28
system/home/swww/swww_init_according_to_time_of_day.sh
Normal 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
|
Loading…
Reference in a new issue