Add wallpapers

This commit is contained in:
Hadi
2024-03-13 18:09:30 +01:00
parent a17cf20b6d
commit 7632c0fd10
12 changed files with 74 additions and 59 deletions

View File

@@ -1,11 +1,10 @@
{ pkgs, config, ... }: {
imports = [ ./hyprlock.nix ./hypridle.nix ];
imports = [ ./hyprlock.nix ./hypridle.nix ./hyprpaper.nix ];
home.packages = with pkgs; [
xdg-desktop-portal-hyprland
wlr-randr
swww
wl-clipboard
brightnessctl
gnome.gnome-themes-extra
@@ -31,11 +30,7 @@
"$menu" = "menu";
"$powermenu" = "${pkgs.wlogout}/bin/wlogout";
exec-once = [
"swww init"
"swww img /home/hadi/.config/wallpaper/default.png"
"hypridle"
];
exec-once = [ "hypridle" "hyprpaper"];
monitor = [
"eDP-2,highres,0x0,1"

View File

@@ -0,0 +1,8 @@
{ pkgs, config, ... }: {
home.packages = with pkgs; [ hyprpaper ];
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ~/.config/wallpaper/${config.theme.wallpaper}
wallpaper = ,~/.config/wallpaper/${config.theme.wallpaper}
'';
}