Compare

9e70f144dde840fed8d8b485f9396638139ec310 .. 7adeedbdd6287517fca8c0b8080221e77ad79b54 · 1 commits

Changed files

FileChanges
files/Wallpapers/1685362396481634.jpg binary raw
files/Wallpapers/1693169418078790.jpg binary raw
files/Wallpapers/1694792956043641.jpg binary raw
files/Wallpapers/1708470532817406.jpg binary raw
files/Wallpapers/1720750738377603.jpg binary raw
files/Wallpapers/1720751011150282.png binary raw
files/Wallpapers/1723625710776950.jpg binary raw
files/Wallpapers/1723626275390685.jpg binary raw
files/Wallpapers/1728661127589872.jpg binary raw
files/Wallpapers/4yglzy4rkh4d1.jpeg binary raw
files/Wallpapers/7xosa7um3ohd1.jpg binary raw
files/Wallpapers/83juiltm3ohd1.jpg binary raw
files/Wallpapers/CN62QXJ.jpg binary raw
files/Wallpapers/above-clouds.jpg binary raw
files/Wallpapers/alena-aenami-bluehour-1k.jpg binary raw
files/Wallpapers/alena-aenami-budapest.jpg binary raw
files/Wallpapers/alena-aenami-cave-1k.jpg binary raw
files/Wallpapers/alena-aenami-close-to-the-sun-1920.jpg binary raw
files/Wallpapers/alena-aenami-cold-1k.jpg binary raw
files/Wallpapers/alena-aenami-cosmo-1k.jpg binary raw
files/Wallpapers/alena-aenami-downtown-1k.jpg binary raw
files/Wallpapers/alena-aenami-dreamy-1k.jpg binary raw
files/Wallpapers/alena-aenami-eclipse-1k.jpg binary raw
files/Wallpapers/alena-aenami-end-1k.jpg binary raw
files/Wallpapers/alena-aenami-eternity-1080px.jpg binary raw
files/Wallpapers/alena-aenami-kosmos19001.jpg binary raw
files/Wallpapers/alena-aenami-light-at-the-end-hd.jpg binary raw
files/Wallpapers/alena-aenami-lights-1k.jpg binary raw
files/Wallpapers/alena-aenami-lines1k.jpg binary raw
files/Wallpapers/alena-aenami-mountains1k.jpg binary raw
files/Wallpapers/alena-aenami-new-year1k.jpg binary raw
files/Wallpapers/alena-aenami-orangemoon1900p.jpg binary raw
files/Wallpapers/alena-aenami-portal-1k.jpg binary raw
files/Wallpapers/alena-aenami-reflect1k.jpg binary raw
files/Wallpapers/alena-aenami-serenity-1k.jpg binary raw
files/Wallpapers/alena-aenami-sky1k.jpg binary raw
files/Wallpapers/alena-aenami-solar-1k.jpg binary raw
files/Wallpapers/alena-aenami-tl-002-1k.png binary raw
files/Wallpapers/alena-aenami-wait.jpg binary raw
files/Wallpapers/alena-aenami-wings-hd.jpg binary raw
files/Wallpapers/alena-aenami-you-1k-2.jpg binary raw
files/Wallpapers/autumn1.jpg binary raw
files/Wallpapers/autumn1.png binary raw
files/Wallpapers/dawn-mountains-vibrant.jpg binary raw
files/Wallpapers/lake-winter.jpg binary raw
files/Wallpapers/mountains.jpg binary raw
files/Wallpapers/northern-lights-2.jpg binary raw
files/Wallpapers/northern-lights-bridge.jpg binary raw
files/Wallpapers/ooglygoo.png binary raw
files/Wallpapers/purple-grass.jpg binary raw
files/Wallpapers/purple-intersection.jpg binary raw
files/Wallpapers/purple-lakescape.jpg binary raw
files/Wallpapers/sah1k8tm3ohd1.jpg binary raw
files/Wallpapers/scarecrow.jpg binary raw
files/Wallpapers/snow-1.jpg binary raw
files/Wallpapers/snow-2.jpg binary raw
files/Wallpapers/vfcfyfyehhi31.png binary raw
files/Wallpapers/w7ufw5eb3cuz.jpg binary raw
hosts/RyanMac/configuration.nix +9 −0 raw
modules/darwin/random-wallpaper.nix +40 −0 raw

Commits

HashSubjectAuthorDate
7adeedbd Added wallpapers and logic to rotate them Ryan Schanzenbacher
diff --git a/files/Wallpapers/1685362396481634.jpg b/files/Wallpapers/1685362396481634.jpg
new file mode 100644
index 0000000..fd49cae
Binary files /dev/null and b/files/Wallpapers/1685362396481634.jpg differ
diff --git a/files/Wallpapers/1693169418078790.jpg b/files/Wallpapers/1693169418078790.jpg
new file mode 100644
index 0000000..8156108
Binary files /dev/null and b/files/Wallpapers/1693169418078790.jpg differ
diff --git a/files/Wallpapers/1694792956043641.jpg b/files/Wallpapers/1694792956043641.jpg
new file mode 100644
index 0000000..431e96b
Binary files /dev/null and b/files/Wallpapers/1694792956043641.jpg differ
diff --git a/files/Wallpapers/1708470532817406.jpg b/files/Wallpapers/1708470532817406.jpg
new file mode 100644
index 0000000..4a4f2f0
Binary files /dev/null and b/files/Wallpapers/1708470532817406.jpg differ
diff --git a/files/Wallpapers/1720750738377603.jpg b/files/Wallpapers/1720750738377603.jpg
new file mode 100644
index 0000000..f8dd9cd
Binary files /dev/null and b/files/Wallpapers/1720750738377603.jpg differ
diff --git a/files/Wallpapers/1720751011150282.png b/files/Wallpapers/1720751011150282.png
new file mode 100644
index 0000000..dbd3e38
Binary files /dev/null and b/files/Wallpapers/1720751011150282.png differ
diff --git a/files/Wallpapers/1723625710776950.jpg b/files/Wallpapers/1723625710776950.jpg
new file mode 100644
index 0000000..71608ff
Binary files /dev/null and b/files/Wallpapers/1723625710776950.jpg differ
diff --git a/files/Wallpapers/1723626275390685.jpg b/files/Wallpapers/1723626275390685.jpg
new file mode 100644
index 0000000..aa8c8c2
Binary files /dev/null and b/files/Wallpapers/1723626275390685.jpg differ
diff --git a/files/Wallpapers/1728661127589872.jpg b/files/Wallpapers/1728661127589872.jpg
new file mode 100644
index 0000000..b5dcbeb
Binary files /dev/null and b/files/Wallpapers/1728661127589872.jpg differ
diff --git a/files/Wallpapers/4yglzy4rkh4d1.jpeg b/files/Wallpapers/4yglzy4rkh4d1.jpeg
new file mode 100644
index 0000000..0ef50ad
Binary files /dev/null and b/files/Wallpapers/4yglzy4rkh4d1.jpeg differ
diff --git a/files/Wallpapers/7xosa7um3ohd1.jpg b/files/Wallpapers/7xosa7um3ohd1.jpg
new file mode 100644
index 0000000..3bb615e
Binary files /dev/null and b/files/Wallpapers/7xosa7um3ohd1.jpg differ
diff --git a/files/Wallpapers/83juiltm3ohd1.jpg b/files/Wallpapers/83juiltm3ohd1.jpg
new file mode 100644
index 0000000..15aff05
Binary files /dev/null and b/files/Wallpapers/83juiltm3ohd1.jpg differ
diff --git a/files/Wallpapers/CN62QXJ.jpg b/files/Wallpapers/CN62QXJ.jpg
new file mode 100644
index 0000000..c49c449
Binary files /dev/null and b/files/Wallpapers/CN62QXJ.jpg differ
diff --git a/files/Wallpapers/above-clouds.jpg b/files/Wallpapers/above-clouds.jpg
new file mode 100644
index 0000000..a525ee8
Binary files /dev/null and b/files/Wallpapers/above-clouds.jpg differ
diff --git a/files/Wallpapers/alena-aenami-bluehour-1k.jpg b/files/Wallpapers/alena-aenami-bluehour-1k.jpg
new file mode 100644
index 0000000..ade3472
Binary files /dev/null and b/files/Wallpapers/alena-aenami-bluehour-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-budapest.jpg b/files/Wallpapers/alena-aenami-budapest.jpg
new file mode 100644
index 0000000..a01b60b
Binary files /dev/null and b/files/Wallpapers/alena-aenami-budapest.jpg differ
diff --git a/files/Wallpapers/alena-aenami-cave-1k.jpg b/files/Wallpapers/alena-aenami-cave-1k.jpg
new file mode 100644
index 0000000..048b4c1
Binary files /dev/null and b/files/Wallpapers/alena-aenami-cave-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-close-to-the-sun-1920.jpg b/files/Wallpapers/alena-aenami-close-to-the-sun-1920.jpg
new file mode 100644
index 0000000..853ff56
Binary files /dev/null and b/files/Wallpapers/alena-aenami-close-to-the-sun-1920.jpg differ
diff --git a/files/Wallpapers/alena-aenami-cold-1k.jpg b/files/Wallpapers/alena-aenami-cold-1k.jpg
new file mode 100644
index 0000000..5152b02
Binary files /dev/null and b/files/Wallpapers/alena-aenami-cold-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-cosmo-1k.jpg b/files/Wallpapers/alena-aenami-cosmo-1k.jpg
new file mode 100644
index 0000000..78f50a9
Binary files /dev/null and b/files/Wallpapers/alena-aenami-cosmo-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-downtown-1k.jpg b/files/Wallpapers/alena-aenami-downtown-1k.jpg
new file mode 100644
index 0000000..870813b
Binary files /dev/null and b/files/Wallpapers/alena-aenami-downtown-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-dreamy-1k.jpg b/files/Wallpapers/alena-aenami-dreamy-1k.jpg
new file mode 100644
index 0000000..3931833
Binary files /dev/null and b/files/Wallpapers/alena-aenami-dreamy-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-eclipse-1k.jpg b/files/Wallpapers/alena-aenami-eclipse-1k.jpg
new file mode 100644
index 0000000..acf008e
Binary files /dev/null and b/files/Wallpapers/alena-aenami-eclipse-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-end-1k.jpg b/files/Wallpapers/alena-aenami-end-1k.jpg
new file mode 100644
index 0000000..5b8d249
Binary files /dev/null and b/files/Wallpapers/alena-aenami-end-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-eternity-1080px.jpg b/files/Wallpapers/alena-aenami-eternity-1080px.jpg
new file mode 100644
index 0000000..f8a50f8
Binary files /dev/null and b/files/Wallpapers/alena-aenami-eternity-1080px.jpg differ
diff --git a/files/Wallpapers/alena-aenami-kosmos19001.jpg b/files/Wallpapers/alena-aenami-kosmos19001.jpg
new file mode 100644
index 0000000..e3ce36a
Binary files /dev/null and b/files/Wallpapers/alena-aenami-kosmos19001.jpg differ
diff --git a/files/Wallpapers/alena-aenami-light-at-the-end-hd.jpg b/files/Wallpapers/alena-aenami-light-at-the-end-hd.jpg
new file mode 100644
index 0000000..00cbcb1
Binary files /dev/null and b/files/Wallpapers/alena-aenami-light-at-the-end-hd.jpg differ
diff --git a/files/Wallpapers/alena-aenami-lights-1k.jpg b/files/Wallpapers/alena-aenami-lights-1k.jpg
new file mode 100644
index 0000000..b3038ec
Binary files /dev/null and b/files/Wallpapers/alena-aenami-lights-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-lines1k.jpg b/files/Wallpapers/alena-aenami-lines1k.jpg
new file mode 100644
index 0000000..73688eb
Binary files /dev/null and b/files/Wallpapers/alena-aenami-lines1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-mountains1k.jpg b/files/Wallpapers/alena-aenami-mountains1k.jpg
new file mode 100644
index 0000000..7448ab1
Binary files /dev/null and b/files/Wallpapers/alena-aenami-mountains1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-new-year1k.jpg b/files/Wallpapers/alena-aenami-new-year1k.jpg
new file mode 100644
index 0000000..816a884
Binary files /dev/null and b/files/Wallpapers/alena-aenami-new-year1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-orangemoon1900p.jpg b/files/Wallpapers/alena-aenami-orangemoon1900p.jpg
new file mode 100644
index 0000000..08e56c0
Binary files /dev/null and b/files/Wallpapers/alena-aenami-orangemoon1900p.jpg differ
diff --git a/files/Wallpapers/alena-aenami-portal-1k.jpg b/files/Wallpapers/alena-aenami-portal-1k.jpg
new file mode 100644
index 0000000..24311ff
Binary files /dev/null and b/files/Wallpapers/alena-aenami-portal-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-reflect1k.jpg b/files/Wallpapers/alena-aenami-reflect1k.jpg
new file mode 100644
index 0000000..49ab145
Binary files /dev/null and b/files/Wallpapers/alena-aenami-reflect1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-serenity-1k.jpg b/files/Wallpapers/alena-aenami-serenity-1k.jpg
new file mode 100644
index 0000000..7164548
Binary files /dev/null and b/files/Wallpapers/alena-aenami-serenity-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-sky1k.jpg b/files/Wallpapers/alena-aenami-sky1k.jpg
new file mode 100644
index 0000000..84b9739
Binary files /dev/null and b/files/Wallpapers/alena-aenami-sky1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-solar-1k.jpg b/files/Wallpapers/alena-aenami-solar-1k.jpg
new file mode 100644
index 0000000..cb71169
Binary files /dev/null and b/files/Wallpapers/alena-aenami-solar-1k.jpg differ
diff --git a/files/Wallpapers/alena-aenami-tl-002-1k.png b/files/Wallpapers/alena-aenami-tl-002-1k.png
new file mode 100644
index 0000000..b6f450f
Binary files /dev/null and b/files/Wallpapers/alena-aenami-tl-002-1k.png differ
diff --git a/files/Wallpapers/alena-aenami-wait.jpg b/files/Wallpapers/alena-aenami-wait.jpg
new file mode 100644
index 0000000..2dc72ac
Binary files /dev/null and b/files/Wallpapers/alena-aenami-wait.jpg differ
diff --git a/files/Wallpapers/alena-aenami-wings-hd.jpg b/files/Wallpapers/alena-aenami-wings-hd.jpg
new file mode 100644
index 0000000..89b1378
Binary files /dev/null and b/files/Wallpapers/alena-aenami-wings-hd.jpg differ
diff --git a/files/Wallpapers/alena-aenami-you-1k-2.jpg b/files/Wallpapers/alena-aenami-you-1k-2.jpg
new file mode 100644
index 0000000..5057667
Binary files /dev/null and b/files/Wallpapers/alena-aenami-you-1k-2.jpg differ
diff --git a/files/Wallpapers/autumn1.jpg b/files/Wallpapers/autumn1.jpg
new file mode 100644
index 0000000..1f06edd
Binary files /dev/null and b/files/Wallpapers/autumn1.jpg differ
diff --git a/files/Wallpapers/autumn1.png b/files/Wallpapers/autumn1.png
new file mode 100644
index 0000000..72cac31
Binary files /dev/null and b/files/Wallpapers/autumn1.png differ
diff --git a/files/Wallpapers/dawn-mountains-vibrant.jpg b/files/Wallpapers/dawn-mountains-vibrant.jpg
new file mode 100644
index 0000000..c678fec
Binary files /dev/null and b/files/Wallpapers/dawn-mountains-vibrant.jpg differ
diff --git a/files/Wallpapers/lake-winter.jpg b/files/Wallpapers/lake-winter.jpg
new file mode 100644
index 0000000..b47a8c9
Binary files /dev/null and b/files/Wallpapers/lake-winter.jpg differ
diff --git a/files/Wallpapers/mountains.jpg b/files/Wallpapers/mountains.jpg
new file mode 100644
index 0000000..f51a09b
Binary files /dev/null and b/files/Wallpapers/mountains.jpg differ
diff --git a/files/Wallpapers/northern-lights-2.jpg b/files/Wallpapers/northern-lights-2.jpg
new file mode 100644
index 0000000..cb2a7f4
Binary files /dev/null and b/files/Wallpapers/northern-lights-2.jpg differ
diff --git a/files/Wallpapers/northern-lights-bridge.jpg b/files/Wallpapers/northern-lights-bridge.jpg
new file mode 100644
index 0000000..8fa7b28
Binary files /dev/null and b/files/Wallpapers/northern-lights-bridge.jpg differ
diff --git a/files/Wallpapers/ooglygoo.png b/files/Wallpapers/ooglygoo.png
new file mode 100644
index 0000000..f3503ca
Binary files /dev/null and b/files/Wallpapers/ooglygoo.png differ
diff --git a/files/Wallpapers/purple-grass.jpg b/files/Wallpapers/purple-grass.jpg
new file mode 100644
index 0000000..2a81c54
Binary files /dev/null and b/files/Wallpapers/purple-grass.jpg differ
diff --git a/files/Wallpapers/purple-intersection.jpg b/files/Wallpapers/purple-intersection.jpg
new file mode 100644
index 0000000..cf75de4
Binary files /dev/null and b/files/Wallpapers/purple-intersection.jpg differ
diff --git a/files/Wallpapers/purple-lakescape.jpg b/files/Wallpapers/purple-lakescape.jpg
new file mode 100644
index 0000000..23d28e2
Binary files /dev/null and b/files/Wallpapers/purple-lakescape.jpg differ
diff --git a/files/Wallpapers/sah1k8tm3ohd1.jpg b/files/Wallpapers/sah1k8tm3ohd1.jpg
new file mode 100644
index 0000000..a21261b
Binary files /dev/null and b/files/Wallpapers/sah1k8tm3ohd1.jpg differ
diff --git a/files/Wallpapers/scarecrow.jpg b/files/Wallpapers/scarecrow.jpg
new file mode 100644
index 0000000..f095d15
Binary files /dev/null and b/files/Wallpapers/scarecrow.jpg differ
diff --git a/files/Wallpapers/snow-1.jpg b/files/Wallpapers/snow-1.jpg
new file mode 100644
index 0000000..d00fcd1
Binary files /dev/null and b/files/Wallpapers/snow-1.jpg differ
diff --git a/files/Wallpapers/snow-2.jpg b/files/Wallpapers/snow-2.jpg
new file mode 100644
index 0000000..5343822
Binary files /dev/null and b/files/Wallpapers/snow-2.jpg differ
diff --git a/files/Wallpapers/vfcfyfyehhi31.png b/files/Wallpapers/vfcfyfyehhi31.png
new file mode 100644
index 0000000..adb7f37
Binary files /dev/null and b/files/Wallpapers/vfcfyfyehhi31.png differ
diff --git a/files/Wallpapers/w7ufw5eb3cuz.jpg b/files/Wallpapers/w7ufw5eb3cuz.jpg
new file mode 100644
index 0000000..e59d184
Binary files /dev/null and b/files/Wallpapers/w7ufw5eb3cuz.jpg differ
diff --git a/hosts/RyanMac/configuration.nix b/hosts/RyanMac/configuration.nix
index 572c534..aa91f91 100644
--- a/hosts/RyanMac/configuration.nix
+++ b/hosts/RyanMac/configuration.nix
@@ -20,6 +20,9 @@ let
});
in {
+ # Modules
+ imports = [ ../../modules/darwin/random-wallpaper.nix ];
+
# Define the system's user and home dir location
users.users."${username}" = {
name = "${username}";
@@ -28,6 +31,12 @@ in {
system.primaryUser = "${username}";
+ # Install the wallpaper engine
+ local.randomWallpaper = {
+ enable = true;
+ directory = "${../../files/Wallpapers}";
+ };
+
# Install the /etc/nix/flake-registry.json file we made above
environment.etc."nix/flake-registry.json".source = pinnedNixpkgs;
diff --git a/modules/darwin/random-wallpaper.nix b/modules/darwin/random-wallpaper.nix
new file mode 100644
index 0000000..6b17c0f
--- /dev/null
+++ b/modules/darwin/random-wallpaper.nix
@@ -0,0 +1,40 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.local.randomWallpaper;
+ script = pkgs.writeShellApplication {
+ name = "set-random-wallpaper";
+ runtimeInputs = [ pkgs.coreutils pkgs.findutils ];
+ text = ''
+ set -euo pipefail
+ img=$(find "${cfg.directory}" \
+ -type f \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' \) \
+ | shuf -n1)
+ [ -n "$img" ] || exit 0
+ /usr/bin/osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"$img\""
+ '';
+ };
+in
+{
+ options.local.randomWallpaper = {
+ enable = lib.mkEnableOption "Random Rotating Wallpaper";
+ directory = lib.mkOption {
+ type = lib.types.str;
+ description = "Folder containing images";
+ };
+ interval = lib.mkOption {
+ type = lib.types.int;
+ default = 1800;
+ description = "Seconds between wallpaper changes";
+ };
+ };
+
+ config = lib.mkIf cfg.enable {
+ launchd.user.agents.random-wallpaper.serviceConfig = {
+ Label = "org.rschanz.wallpaperDaemon";
+ ProgramArguments = [ "${script}/bin/set-random-wallpaper" ];
+ StartInterval = cfg.interval;
+ RunAtLoad = true;
+ ProcessType = "Background";
+ };
+ };
+}