Files
colorshell/config/hypr/scripts/gen-pywal.sh
T
retrozinndev 8ed04b6fed 🔧 chore: add default wallpaper + default config, remove drun apps support
fixes a lot of issues related to color generation, since now there's a default wallpaper
2025-08-23 12:21:57 -03:00

18 lines
550 B
Bash

#!/usr/bin/env bash
# This script loads/generate color schemes from current
# wallpaper using pywal16.
# ----------
# Licensed under the MIT License
# Made by retrozinndev (João Dias)
# From https://github.com/retrozinndev/colorshell
if ! [[ -f "$XDG_CONFIG_HOME/hypr/hyprpaper.conf" ]]; then
echo "[error] wallpaper file not found!"
exit 1
fi
wallpaper=`cat "$XDG_CONFIG_HOME/hypr/hyprpaper.conf" | grep '$wallpaper =' | sed -e 's/^$wallpaper = //'`
[[ -d "$XDG_CACHE_HOME/wal" ]] && wal -R || wal -q -t --cols16 darken -i "$wallpaper"