Skip to content

Commit

Permalink
Remove macos-wallpaper, revert back to using applescript
Browse files Browse the repository at this point in the history
Currently, macos-wallpaper doesn't work on Sonoma. Revert this commit
until there's progress on sindresorhus/macos-wallpaper#41.

This reverts commit f55276f.
  • Loading branch information
jeffkreeftmeijer committed Apr 21, 2024
1 parent 0668f82 commit 11ca05b
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
./slack.nix
./spotify.nix
./utm.nix
./wallpaper.nix
./wallpaper
./whatsapp.nix
./wireguard.nix
./zoom.nix
Expand Down
2 changes: 1 addition & 1 deletion modules/darwin/wallpaper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
enable = true;
brews = [ "wallpaper" ];
};
system.activationScripts.wallpaper.text = "wallpaper set-solid-color 008080";
# system.activationScripts.wallpaper.text = "wallpaper set-solid-color 008080";
}
4 changes: 4 additions & 0 deletions modules/darwin/wallpaper/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
generate:
nix run nixpkgs#imagemagick -- -size 1x1 xc:#1d2235 vivendi.png
nix run nixpkgs#imagemagick -- -size 1x1 xc:#efe9dd operandi.png
nix run nixpkgs#imagemagick -- -size 1x1 xc:#008080 win95.png
10 changes: 10 additions & 0 deletions modules/darwin/wallpaper/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
system.activationScripts.postUserActivation.text = ''
osascript -e "
tell application \"System Events\"
tell every desktop
set picture to \"~/.config/nix/modules/darwin/wallpaper/win95.png\"
end tell
end tell"
'';
}
Binary file added modules/darwin/wallpaper/light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added modules/darwin/wallpaper/operandi.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added modules/darwin/wallpaper/vivendi.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added modules/darwin/wallpaper/win95.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11ca05b

Please sign in to comment.