diff --git a/host/Eclipse/modules/hyprland.nix b/host/Eclipse/modules/hyprland.nix index 685e96a..b67c99a 100644 --- a/host/Eclipse/modules/hyprland.nix +++ b/host/Eclipse/modules/hyprland.nix @@ -1,5 +1,11 @@ -{ - wayland.windowManager.hyprland = { +{ pkgs, lib, ... }: { + wayland.windowManager.hyprland = let + wallpaper = pkgs.fetchurl { + name = "miku_wallpaper.jpg"; + url = "https://c.codrs.ru/pub/miku_wallpaper.jpeg?raw"; + hash = "sha256-inK4X5KzQk5FHwDw2DYy43nm7XtXlC6I0S1PkYUv+3w="; + }; + in { settings = { monitor = [ "DP-3 , 1920x1080@165, 0x0 , 1" @@ -13,6 +19,8 @@ exec-once = [ "hyprctl dispatch workspace 1" + "${lib.getExe pkgs.swww} img -o HDMI-A-1 ${wallpaper}" + "${lib.getExe pkgs.linux-wallpaperengine} ~/.local/share/wpe/wallpaper --assets-dir ~/.local/share/wpe/assets --screen-root DP-3 --noautomute" ]; }; }; diff --git a/user/chest/modules/hyprland.nix b/user/chest/modules/hyprland.nix index 99b71ae..2969a81 100644 --- a/user/chest/modules/hyprland.nix +++ b/user/chest/modules/hyprland.nix @@ -59,10 +59,6 @@ enable_swallow = true; }; - exec-once = [ - "${lib.getExe pkgs.linux-wallpaperengine} ~/.local/share/wpe/wallpaper --assets-dir ~/.local/share/wpe/assets --screen-root DP-3 --noautomute" - ]; - bind = [ ''$mainMod Shift, S, exec, ${lib.getExe pkgs.grim} -g "$(${lib.getExe pkgs.slurp})" - | ${lib.getExe pkgs.swappy} -f -'' ];