feat(nix-darwin): add setbg script

Sets the background of all spaces on all displays/desktops to an image (passed as a command-line argument) preserving the focused spaces and window after running
Depends on `yabai` (>`System Integrity Protection must be partially disabled.`) and `jq`
Written in `applescript`
This commit is contained in:
reo101 2024-01-21 22:09:56 +02:00
parent d9a01b42ae
commit c57ddea18b
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
3 changed files with 98 additions and 1 deletions

View file

@ -15,7 +15,13 @@ in
};
config = mkIf cfg.enable {
services= {
environment.systemPackages = [
(pkgs.callPackage ./setbg {
yabai = config.services.yabai.package;
})
];
services = {
yabai = {
enable = true;
package = pkgs.yabai;