๐ wallpaper selector in rofi
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
I created this script that Wonderwall a selection of funds for X11, so I decided to create an extension to make it compatible with Wayland. My problem is that I do not know how to add thumbnails to the images to make it easier to identify them
#!/bin/bash
# Descargar las imรกgenes desde Wonderwall
wonderwall -d -g /home/shen/.var/app/com.ktechpit.wonderwall/data/ktechpit/WonderWall/download/
# Obtener una lista de las imรกgenes descargadas
image_list=$(ls /home/shen/.var/app/com.ktechpit.wonderwall/data/ktechpit/WonderWall/download/ | rev | cut -d/ -f1 | rev)
# selecionar la imagen como fondo de pantalla
image_path=/home/shen/.var/app/com.ktechpit.wonderwall/data/ktechpit/WonderWall/download/$(echo "$image_list" | rofi -dmenu show-icons true -theme-str '#window { width: 50%; }' -p "Choose wallpaper:")
# Establecer la imagen seleccionada como fondo de pantalla utilizando swaybg
swaybg -i "$image_path" -m fill
[link] [comments] ...