Saataa andagii !
This commit is contained in:
parent
56d5497961
commit
7e708170ee
7 changed files with 13 additions and 13 deletions
|
@ -11,8 +11,8 @@ TYPE="outer"
|
||||||
DURATION=3
|
DURATION=3
|
||||||
|
|
||||||
# wofi window config (in %)
|
# wofi window config (in %)
|
||||||
WIDTH=20
|
WIDTH=70
|
||||||
HEIGHT=30
|
HEIGHT=70
|
||||||
|
|
||||||
SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION"
|
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
|
# Here we are looping in the PICS array that is composed of all images in the $DIR
|
||||||
# folder
|
# folder
|
||||||
for i in ${!PICS[@]}; do
|
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
|
# keeping the .gif to make sue you know it is animated
|
||||||
if [[ -z $(echo ${PICS[$i]} | grep .gif$) ]]; then
|
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
|
else
|
||||||
printf "$i. ${PICS[$i]}\n"
|
printf "img:${path}:text:${PICS[$i]}\n"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "$RANDOM_PIC_NAME"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
swww query || swww-daemon
|
swww query || swww-daemon
|
||||||
|
@ -72,8 +72,9 @@ main() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pic_index=$(echo $choice | cut -d. -f1)
|
pic_path=$(echo $choice | cut -d: -f2)
|
||||||
swww img ${DIR}/${PICS[$pic_index]} $SWWW_PARAMS
|
echo $pic_path
|
||||||
|
swww img ${pic_path} $SWWW_PARAMS
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if wofi is already running
|
# Check if wofi is already running
|
||||||
|
|
BIN
.config/hypr/wallpapers/chika1.png
Normal file
BIN
.config/hypr/wallpapers/chika1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 MiB |
BIN
.config/hypr/wallpapers/lucy1.jpg
Normal file
BIN
.config/hypr/wallpapers/lucy1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 590 KiB |
BIN
.config/hypr/wallpapers/makima1.jpg
Normal file
BIN
.config/hypr/wallpapers/makima1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 MiB |
BIN
.config/hypr/wallpapers/makima2.png
Normal file
BIN
.config/hypr/wallpapers/makima2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 MiB |
|
@ -3,15 +3,13 @@
|
||||||
## General
|
## General
|
||||||
show=drun
|
show=drun
|
||||||
prompt=Apps
|
prompt=Apps
|
||||||
normal_window=true
|
normal_window=false
|
||||||
layer=overlay
|
layer=overlay
|
||||||
term=foot
|
term=foot
|
||||||
columns=2
|
columns=2
|
||||||
|
|
||||||
## Geometry
|
## Geometry
|
||||||
width=30%
|
location=center
|
||||||
height=30%
|
|
||||||
location=top_left
|
|
||||||
orientation=vertical
|
orientation=vertical
|
||||||
halign=fill
|
halign=fill
|
||||||
line_wrap=off
|
line_wrap=off
|
||||||
|
@ -20,7 +18,7 @@ dynamic_lines=false
|
||||||
## Images
|
## Images
|
||||||
allow_markup=true
|
allow_markup=true
|
||||||
allow_images=true
|
allow_images=true
|
||||||
image_size=24
|
image_size=256
|
||||||
|
|
||||||
## Search
|
## Search
|
||||||
exec_search=false
|
exec_search=false
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
|
|
||||||
#entry {
|
#entry {
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#entry:selected {
|
#entry:selected {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue