From 629402b83680ef108963d1ef2a675fae28415084 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Sun, 24 Nov 2024 22:45:23 +1000 Subject: [PATCH] hopefully a fix for automatically setting desktop and lockscreen backgrounds --- home/desktop/hypr/hyprland.nix | 2 +- home/desktop/hyprlock.nix | 2 +- home/resources/themes/SerenityOS.nix | 3 ++- home/scripts/startup.nix | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/home/desktop/hypr/hyprland.nix b/home/desktop/hypr/hyprland.nix index 67fa45e..a7ae0b0 100755 --- a/home/desktop/hypr/hyprland.nix +++ b/home/desktop/hypr/hyprland.nix @@ -43,7 +43,7 @@ exec-once = [ "startup" #"otd-gui" - #"${pkgs.udiskie}/bin/udiskie" + #"${pkgs.udiskie}/bin/udiskie" #"${pkgs.hypridle}/bin/hypridle" #"${pkgs.swww}/bin/swww swww init" "${pkgs.kitty}/bin/kitty --class floating" diff --git a/home/desktop/hyprlock.nix b/home/desktop/hyprlock.nix index 245a23f..8ac4ddd 100755 --- a/home/desktop/hyprlock.nix +++ b/home/desktop/hyprlock.nix @@ -3,7 +3,7 @@ xdg.configFile."hypr/hyprlock.conf".text = '' background { monitor = - path = $HOME/.config/wallpapers/${config.theme.wallpaper} + path = ${config.theme.lockscreenWallpaper} color = rgb(${config.theme.colors.bg}) blur_size = 4 diff --git a/home/resources/themes/SerenityOS.nix b/home/resources/themes/SerenityOS.nix index ab10fa8..dc5f8a3 100755 --- a/home/resources/themes/SerenityOS.nix +++ b/home/resources/themes/SerenityOS.nix @@ -4,7 +4,8 @@ ]; theme = { - wallpaper = "../wallpapers/sphericaEssentia.png"; + wallpaper = "../wallpapers/almondBlossoms-VanGogh.jpg"; + lockscreenWallpaper = "../wallpapers/attunement-HelveticaBlanc.png"; waybar-transparent = true; font-mono = "spleen 32x64"; font = "spleen 32x64"; diff --git a/home/scripts/startup.nix b/home/scripts/startup.nix index 98fb18e..4ac6a08 100755 --- a/home/scripts/startup.nix +++ b/home/scripts/startup.nix @@ -26,7 +26,9 @@ let swww-daemon & sleep 0.1 - swww img ~/flakes/nixdots/home/desktop/resources/wallpapers/sphericaEssentia-uncredited.png + swww img ${config.theme.wallpaper} + + swww img ${config.theme.wallpaper} '';