From 6003620db99341e0fd6fecb8e24003e879c6c868 Mon Sep 17 00:00:00 2001 From: sudacode Date: Mon, 5 May 2025 04:00:43 -0700 Subject: [PATCH] add new file --- .config/rofi/scripts/rofi-wallpaper.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .config/rofi/scripts/rofi-wallpaper.sh diff --git a/.config/rofi/scripts/rofi-wallpaper.sh b/.config/rofi/scripts/rofi-wallpaper.sh new file mode 100755 index 0000000..7b20c66 --- /dev/null +++ b/.config/rofi/scripts/rofi-wallpaper.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -Eeuo pipefail + +THEME="$HOME/.config/rofi/launchers/type-3/style-4.rasi" +DIR="$HOME/Pictures/wallpapers/wallhaven" +SELECTED_WALL=$(cd "$DIR" && for a in *.jpg *.png; do echo -en "$a\0icon\x1f$a\n"; done | rofi -dmenu -theme "$THEME" -p "Select a wallpaper" -theme-str 'configuration {icon-size: 128; dpi: 96;} window {width: 45%; height: 45%;}') + +notify-send -a "rofi-wallpaper" "Wallpaper set to" -i "$DIR/$SELECTED_WALL" "$DIR/$SELECTED_WALL" +hyprctl hyprpaper reload , "$DIR/$SELECTED_WALL"