This commit is contained in:
2025-11-30 12:25:38 -08:00
parent 21d6320cc1
commit 099d5e8ba6
2 changed files with 20 additions and 5 deletions

View File

@@ -7,5 +7,5 @@ DIR="$HOME/Pictures/wallpapers/favorites"
SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -i -no-custom -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 128; dpi: 96;} window {width: 45%; height: 45%;}')
PTH="$(printf "%s" "$DIR/$SELECTED_WALL" | tr -s '/')"
notify-send -a "rofi-wallpaper" "Wallpaper set to" -i "$PTH" "$PTH"
hyprctl hyprpaper reload , "$DIR/$SELECTED_WALL"
echo "$PTH" > "$HOME/.wallpaper"
echo "$PTH" >"$HOME/.wallpaper"
hyprctl hyprpaper reload , "$PTH"