From c5cfc8791febfa637463c16b8489304d9abed857 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Thu, 10 Oct 2024 23:59:29 -0400 Subject: [PATCH] pywal --- .scripts/pywal-swww.sh | 11 +++++++++++ waybar/config.jsonc | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 .scripts/pywal-swww.sh diff --git a/.scripts/pywal-swww.sh b/.scripts/pywal-swww.sh new file mode 100755 index 0000000..4e84c73 --- /dev/null +++ b/.scripts/pywal-swww.sh @@ -0,0 +1,11 @@ +# -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 "$(< "${HOME}/.cache/wal/wal")" --transition-type wipe --transition-angle 45 --transition-fps 90 + +# Copy cava and update config +cp ~/.cache/wal/cava-config ~/dotfiles/cava/config && pkill -USR2 cava + diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 7ce721a..854b743 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -25,7 +25,7 @@ "custom/swaync", ], "custom/os": { - "format": "󱄅", + "format": "󰣇", "on-click": "~/.config/rofi/scripts/powermenu_t1", }, "idle_inhibitor": { @@ -132,7 +132,7 @@ "format": "{icon}", "tooltip": false, "tooltip-format": "Change Wallpaper", - "on-click": "pywal", + "on-click": "~/dotfiles/.scripts/pywal-swww.sh", "format-icons": { "default": "", },