Use swaybg to change the background
This commit is contained in:
@@ -13,13 +13,23 @@
|
||||
};
|
||||
|
||||
hypr = pkgs.hyprland;
|
||||
configFile = "${self}/hyprland.lua";
|
||||
|
||||
configDir = pkgs.lib.cleanSource ./.;
|
||||
configFile = "${configDir}/hyprland.lua";
|
||||
|
||||
runtimePackages = with pkgs; [
|
||||
swaybg
|
||||
];
|
||||
|
||||
runtimePath = pkgs.lib.makeBinPath runtimePackages;
|
||||
|
||||
verifyScript = pkgs.writeShellScript "hyprland-verify" ''
|
||||
export PATH=${runtimePath}:$PATH
|
||||
exec ${hypr}/bin/Hyprland --config ${configFile} --verify-config
|
||||
'';
|
||||
|
||||
runScript = pkgs.writeShellScript "hyprland-run" ''
|
||||
export PATH=${runtimePath}:$PATH
|
||||
exec ${hypr}/bin/Hyprland --config ${configFile}
|
||||
'';
|
||||
in
|
||||
@@ -36,6 +46,9 @@
|
||||
};
|
||||
};
|
||||
|
||||
packages.${system}.default = hypr;
|
||||
packages.${system}.default = pkgs.runCommand "hyprland-config-check" { } ''
|
||||
${verifyScript}
|
||||
touch $out
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user