Saataa andagii !

This commit is contained in:
Lukian 2025-03-07 17:30:59 +01:00
parent 56d5497961
commit 7e708170ee
7 changed files with 13 additions and 13 deletions

View file

@ -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°. <name_of_file_without_identifier>
printf "img:${path}:text:$(echo ${PICS[$i]} | cut -d. -f1)\n" # n°. <name_of_file_without_identifier>
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 590 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 MiB

View file

@ -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

View file

@ -43,6 +43,7 @@
#entry {
padding: 6px;
}
#entry:selected {