From 32d95647f8cd6bfdd47bd6eaeea19fc7f2173b2e Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 30 Aug 2025 23:39:52 -0500 Subject: [PATCH] this should work --- home-manager/programs/hyprland/default.nix | 5 +++++ home-manager/users/nathan/packages/scripts/default.nix | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/home-manager/programs/hyprland/default.nix b/home-manager/programs/hyprland/default.nix index 5be9f32..ce1d6ed 100644 --- a/home-manager/programs/hyprland/default.nix +++ b/home-manager/programs/hyprland/default.nix @@ -19,6 +19,11 @@ if [[ ! -f ${config.home.homeDirectory}/.config/hypr/otf.conf ]]; then touch ${config.home.homeDirectory}/.config/hypr/otf.conf fi + + if [[ ! -f ${config.home.homeDirectory}/.config/background ]]; then + cp ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ${config.home.homeDirectory}/.config/background + chmod 600 ${config.home.homeDirectory}/.config/background + fi ''; diff --git a/home-manager/users/nathan/packages/scripts/default.nix b/home-manager/users/nathan/packages/scripts/default.nix index 34ea42a..791172a 100644 --- a/home-manager/users/nathan/packages/scripts/default.nix +++ b/home-manager/users/nathan/packages/scripts/default.nix @@ -66,7 +66,13 @@ (pkgs.writeShellScriptBin "onSystemStart" '' if [[ ! -f ${config.home.homeDirectory}/.config/background ]]; then - hyprctl dispatch exec "randWallpaper && chmod 600 ${config.home.homeDirectory}/.config/background" + cp ${config.home.homeDirectory}/Pictures/Wallpaper/bluescape.jpg ${config.home.homeDirectory}/.config/background + chmod 600 ${config.home.homeDirectory}/.config/background + hyprctl dispatch exec "setWallpaper ${config.home.homeDirectory}/.config/background" + fi + + if [[ -f ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid ]]; then + rm ${config.home.homeDirectory}/.local/share/calcurse/.calcurse.pid fi hyprctl dispatch exec ${pkgs.pyprland}/bin/pypr hyprctl dispatch exec ${pkgs.netbird-ui}/bin/netbird-ui