From 0877dc04bb54165a501a1d54bf2fcea79027c98f Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 6 Apr 2023 03:36:03 +0530 Subject: [PATCH] set wallpaper on login --- home/wm/hyprland/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index b6c8fac..46a317d 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -8,6 +8,7 @@ let swaylock = "${pkgs.swaylock}/bin/swaylock"; tmux = "${pkgs.tmux}/bin/tmux"; wpctl = "${pkgs.wireplumber}/bin/wpctl"; + change-wallpaper = "${pkgs.scripts}/bin/chpaper ${pkgs.catppuccin-wallpapers}/share/wallpapers"; in { wayland.windowManager.hyprland = { @@ -28,6 +29,7 @@ in } exec-once = ${hyprctl} setcursor ${config.gtk.cursorTheme.name} 24 + exec-once = ${change-wallpaper} bindm = SUPER,mouse:272, movewindow bindm = SUPER_SHIFT,mouse:272, resizewindow @@ -42,7 +44,7 @@ in bind = SUPER_SHIFT,Return, exec, ${kitty} bind = SUPER,d, exec, ${rofi} -show drun bind = SUPER,l, exec, ${swaylock} -f -i /tmp/lockpaper.jpg - bind = SUPER_SHIFT,W, exec, ${pkgs.scripts}/bin/chpaper ${pkgs.catppuccin-wallpapers}/share/wallpapers + bind = SUPER_SHIFT,W, exec, ${change-wallpaper} bind = SUPER_SHIFT,escape, exec, ${pkgs.scripts}/bin/power-menu bind = SUPER,f11, exec, ${pkgs.scripts}/bin/tmux-sessions