diff --git a/.config/hypr/scripts/wallpaper-switcher2.sh b/.config/hypr/scripts/wallpaper-switcher2.sh index 886079a..47a1c64 100755 --- a/.config/hypr/scripts/wallpaper-switcher2.sh +++ b/.config/hypr/scripts/wallpaper-switcher2.sh @@ -11,8 +11,8 @@ TYPE="outer" DURATION=3 # wofi window config (in %) -WIDTH=20 -HEIGHT=30 +WIDTH=70 +HEIGHT=70 SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" @@ -47,15 +47,15 @@ menu(){ # Here we are looping in the PICS array that is composed of all images in the $DIR # folder for i in ${!PICS[@]}; do + # get full path of the image + path=${DIR}/${PICS[$i]} # keeping the .gif to make sue you know it is animated if [[ -z $(echo ${PICS[$i]} | grep .gif$) ]]; then - printf "$i. $(echo ${PICS[$i]} | cut -d. -f1)\n" # n°. + printf "img:${path}:text:$(echo ${PICS[$i]} | cut -d. -f1)\n" # n°. else - printf "$i. ${PICS[$i]}\n" + printf "img:${path}:text:${PICS[$i]}\n" fi done - - printf "$RANDOM_PIC_NAME" } swww query || swww-daemon @@ -72,8 +72,9 @@ main() { return fi - pic_index=$(echo $choice | cut -d. -f1) - swww img ${DIR}/${PICS[$pic_index]} $SWWW_PARAMS + pic_path=$(echo $choice | cut -d: -f2) + echo $pic_path + swww img ${pic_path} $SWWW_PARAMS } # Check if wofi is already running diff --git a/.config/hypr/wallpapers/chika1.png b/.config/hypr/wallpapers/chika1.png new file mode 100644 index 0000000..166a7ac Binary files /dev/null and b/.config/hypr/wallpapers/chika1.png differ diff --git a/.config/hypr/wallpapers/lucy1.jpg b/.config/hypr/wallpapers/lucy1.jpg new file mode 100644 index 0000000..2c63d0c Binary files /dev/null and b/.config/hypr/wallpapers/lucy1.jpg differ diff --git a/.config/hypr/wallpapers/makima1.jpg b/.config/hypr/wallpapers/makima1.jpg new file mode 100644 index 0000000..919618b Binary files /dev/null and b/.config/hypr/wallpapers/makima1.jpg differ diff --git a/.config/hypr/wallpapers/makima2.png b/.config/hypr/wallpapers/makima2.png new file mode 100644 index 0000000..d53e40f Binary files /dev/null and b/.config/hypr/wallpapers/makima2.png differ diff --git a/.config/hypr/wofi-wallpapers/config b/.config/hypr/wofi-wallpapers/config index 34109ee..e901537 100644 --- a/.config/hypr/wofi-wallpapers/config +++ b/.config/hypr/wofi-wallpapers/config @@ -3,15 +3,13 @@ ## General show=drun prompt=Apps -normal_window=true +normal_window=false layer=overlay term=foot columns=2 ## Geometry -width=30% -height=30% -location=top_left +location=center orientation=vertical halign=fill line_wrap=off @@ -20,7 +18,7 @@ dynamic_lines=false ## Images allow_markup=true allow_images=true -image_size=24 +image_size=256 ## Search exec_search=false diff --git a/.config/hypr/wofi-wallpapers/style.css b/.config/hypr/wofi-wallpapers/style.css index d8fc571..0e2f2ae 100644 --- a/.config/hypr/wofi-wallpapers/style.css +++ b/.config/hypr/wofi-wallpapers/style.css @@ -43,6 +43,7 @@ #entry { padding: 6px; + } #entry:selected {