From 0f73c59ec779ea3deadc6692d31b77cec33aed69 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 29 Aug 2024 09:05:04 -0400 Subject: [PATCH] move pywal to hyprland --- home-manager/hyprland/default.nix | 12 ++++++++++++ home-manager/terminal.nix | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/home-manager/hyprland/default.nix b/home-manager/hyprland/default.nix index c3a0309..c5905eb 100644 --- a/home-manager/hyprland/default.nix +++ b/home-manager/hyprland/default.nix @@ -15,6 +15,18 @@ swaynotificationcenter volantes-cursors pywal + (pkgs.writeShellScriptBin "pywal" '' + # -n tells `wal` to skip setting the wallpaper. + wal -i ~/Wallpapers/ -n + + # Using feh to tile the wallpaper now. + # We grab the wallpaper location from wal's cache so + # that this works even when a directory is passed. + swww img "$(<"${config.home.homeDirectory}/.cache/wal/wal")" --transition-type wipe --transition-angle 45 --transition-fps 90 + + # Copy cava and update config + cp ~/.cache/wal/cava-config ~/.config/cava/config && pkill -USR2 cava + '') ]; programs.waybar = { diff --git a/home-manager/terminal.nix b/home-manager/terminal.nix index c194079..f88491d 100644 --- a/home-manager/terminal.nix +++ b/home-manager/terminal.nix @@ -65,17 +65,5 @@ home.packages = with pkgs; [ neofetch (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) - (pkgs.writeShellScriptBin "pywal" '' - # -n tells `wal` to skip setting the wallpaper. - wal -i ~/Wallpapers/ -n - - # Using feh to tile the wallpaper now. - # We grab the wallpaper location from wal's cache so - # that this works even when a directory is passed. - swww img "$(<"${config.home.homeDirectory}/.cache/wal/wal")" --transition-type wipe --transition-angle 45 --transition-fps 90 - - # Copy cava and update config - cp ~/.cache/wal/cava-config ~/.config/cava/config && pkill -USR2 cava - '') ]; }