feat(hyprland): replace swaybg with hyprpaper

This commit is contained in:
tux
2025-09-23 13:36:38 +05:30
parent da69c4b543
commit 6b44e284b0
2 changed files with 31 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [./hyprlock.nix]; imports = [
./hyprlock.nix
./hyprpaper.nix
];
home.packages = with pkgs; [astal]; home.packages = with pkgs; [astal];
@@ -61,6 +64,11 @@
"col.inactive_border" = inactive_border_col; "col.inactive_border" = inactive_border_col;
}; };
misc = {
disable_hyprland_logo = true;
force_default_wallpaper = 1;
};
ecosystem = { ecosystem = {
no_update_news = true; no_update_news = true;
no_donation_nag = true; no_donation_nag = true;
@@ -271,7 +279,7 @@
# load hyprland plugins # load hyprland plugins
"hyprctl plugin load '$HYPR_PLUGIN_DIR/lib/libhyprexpo.so'" "hyprctl plugin load '$HYPR_PLUGIN_DIR/lib/libhyprexpo.so'"
"${pkgs.swaybg}/bin/swaybg -i ~/Wallpapers/mountain.jpg" "hyprpaper"
"${pkgs.tpanel}/bin/tpanel" "${pkgs.tpanel}/bin/tpanel"
"copyq" "copyq"
]; ];

View File

@@ -0,0 +1,21 @@
{pkgs, ...}: {
services.hyprpaper = {
enable = true;
settings = {
ipc = "on";
splash = false;
splash_offset = 2.0;
preload = [
"~/Wallpapers/mountain.jpg"
];
wallpaper = [
", ~/Wallpapers/mountain.jpg"
];
};
};
home.packages = with pkgs; [hyprpaper];
}