From aeac1ff44bcadc260ea1db3ecb815eb46dc1171b Mon Sep 17 00:00:00 2001 From: Kirill Date: Wed, 30 Sep 2026 14:33:00 +0300 Subject: [PATCH] fix(hyprland): add change of wallpapers --- modules/user/hyprland.nix | 12 +++++++++++- modules/user/zsh.nix | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/user/hyprland.nix b/modules/user/hyprland.nix index 375e128..2ef3705 100644 --- a/modules/user/hyprland.nix +++ b/modules/user/hyprland.nix @@ -21,7 +21,16 @@ let in { imports = lib.optional (host != null && builtins.pathExists ../../host/${host.name}/modules/hyprland.nix) ../../host/${host.name}/modules/hyprland.nix; - home.packages = with pkgs; [ ghostty pamixer wofi clipse wl-clipboard wl-clip-persist xclip ]; + home.packages = with pkgs; [ + wallpaper_changer + ghostty + pamixer + wofi + clipse + wl-clipboard + wl-clip-persist + xclip + ]; wayland.windowManager.hyprland = { enable = true; configType = "lua"; @@ -88,6 +97,7 @@ in { (hyprLua.bind "SUPER + E" (hyprLua.exec "ghostty -e sh -c yazi")) (hyprLua.bind "SUPER + F" "hl.dsp.window.float({ action = \"toggle\" })") (hyprLua.bind "SUPER + J" "hl.dsp.layout(\"togglesplit\")") + (hyprLua.bind "SUPER + W" (hyprLua.exec "${lib.getExe wallpaper_changer}")) (hyprLua.bind "SUPER + LEFT" "hl.dsp.focus({ direction = \"${direction.left}\" })") (hyprLua.bind "SUPER + RIGHT" "hl.dsp.focus({ direction = \"${direction.right}\" })") (hyprLua.bind "SUPER + UP" "hl.dsp.focus({ direction = \"${direction.up}\" })") diff --git a/modules/user/zsh.nix b/modules/user/zsh.nix index cd303f6..09df9eb 100644 --- a/modules/user/zsh.nix +++ b/modules/user/zsh.nix @@ -88,7 +88,7 @@ openWayBar = "vim .config/f/home-manager/data/waybar.nix"; rebuildFlake = "sudo nixos-rebuild switch --flake /home/kirill/.config/f --impure"; openFlake = "vim /home/kirill/.config/f/flake.nix"; - swichWalls = "python3 /nix/store/6czqsnf0gbvvm472lipndyg34qhnfpis-wallpaper_changer/bin/wallpaper_changer"; + swichWalls = "wallpaper_changer"; screenshot_f="grimblast save screen ~/screenshot_$(date +\%Y-\%m-\%d_\%H-\%M-\%S).png"; screenshot="grimblast save area ~/screenshot_$(date +\%Y-\%m-\%d_\%H-\%M-\%S).png"; screenshot_c = "grimblast copy area";