hypr(scripts): improvements for the "scripts/gen-pywal.sh" script and more

This commit is contained in:
retrozinndev
2025-02-07 16:03:49 -03:00
parent b0bd785ddd
commit 13336069cf
3 changed files with 11 additions and 14 deletions
+3 -3
View File
@@ -7,13 +7,13 @@
# Made by retrozinndev (João Dias)
# From https://github.com/retrozinndev/Hyprland-Dots
wallpaper="$(cat $HOME'/.config/hypr/hyprpaper.conf' | grep '$wallpaper =' | sed -e 's/^$wallpaper = //')"
if ! [[ -f "$wallpaper" ]]; then
if ! [[ -f "$HOME/.config/hypr/hyprpaper.conf" ]]; then
notify-send -a "Wallpaper" "Couldn't load" "Wallpaper file not found! Please check for the wallpaper: $wallpaper."
exit 1
fi
wallpaper="$(cat $HOME'/.config/hypr/hyprpaper.conf' | grep '$wallpaper =' | sed -e 's/^$wallpaper = //')"
if [[ -d "$HOME/.cache/wal" ]]; then
wal -R
else