Added hyprland wallpaper
This commit is contained in:
parent
6f350eb67f
commit
907a001a3a
3 changed files with 9 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
monitor = [",preferred,auto,2"];
|
monitor = [",preferred,auto,2"];
|
||||||
|
wallpaper = "wallpaper/nix.png";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
with lib; let
|
with lib; let
|
||||||
username = config.modules.other.system.username;
|
username = config.modules.other.system.username;
|
||||||
cfg = config.modules.hyprland;
|
cfg = config.modules.hyprland;
|
||||||
|
gitPath = config.modules.other.system.gitPath;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
|
@ -20,6 +21,11 @@ in {
|
||||||
default = {};
|
default = {};
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
};
|
};
|
||||||
|
wallpaper = mkOption {
|
||||||
|
description = "wallpaper relative from assets";
|
||||||
|
default = "";
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -84,6 +90,7 @@ in {
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"waybar"
|
"waybar"
|
||||||
|
"swww init & swww img ${gitPath}/${cfg.wallpaper}"
|
||||||
];
|
];
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
|
|
|
@ -57,6 +57,7 @@ in {
|
||||||
xdg-utils # xdg-mime script
|
xdg-utils # xdg-mime script
|
||||||
webcord
|
webcord
|
||||||
element-desktop
|
element-desktop
|
||||||
|
swww
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue