From 1d64a259eb2f377b7b7dc36263eaf33d4a7cf28c Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Sun, 21 Jun 2026 22:42:17 -0400 Subject: Changed wallpaper to change via helper app, initial settings for window management --- modules/darwin/random-wallpaper.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/darwin/random-wallpaper.nix') diff --git a/modules/darwin/random-wallpaper.nix b/modules/darwin/random-wallpaper.nix index 6b17c0f..75248b7 100644 --- a/modules/darwin/random-wallpaper.nix +++ b/modules/darwin/random-wallpaper.nix @@ -3,14 +3,15 @@ let cfg = config.local.randomWallpaper; script = pkgs.writeShellApplication { name = "set-random-wallpaper"; - runtimeInputs = [ pkgs.coreutils pkgs.findutils ]; + runtimeInputs = [ pkgs.coreutils pkgs.findutils pkgs.desktoppr]; 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\"" + #/usr/bin/osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"$img\"" + desktoppr "$img" ''; }; in -- cgit v1.3