feat: random images in rofi wooo

This commit is contained in:
2025-07-04 13:34:59 +03:00
parent dbcff6dc1e
commit b5e2266787
8 changed files with 19 additions and 31 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -2,25 +2,24 @@
## Author : Aditya Shakya (adi1090x)
## Github : @adi1090x
#
## Rofi : Launcher (Modi Drun, Run, File Browser, Window)
#
## Available Styles
#
## style-1 style-2 style-3 style-4 style-5
## style-6 style-7 style-8 style-9 style-10
## Forked by : Nikolai Papin (WeirdCat)
## Git: cloud.weirdcat.su
dir="$HOME/.config/rofi-wayland/launchers/type-6"
images_dir="$dir/images/"
theme='style-7'
image=$(find "$images_dir" -type f | shuf -n 1)
if [[ ! -e /tmp/rofi-theme.rasi ]]; then
cp ${dir}/${theme}.rasi /tmp/rofi-theme.rasi
cp ~/.config/rofi-wayland/images/japanvolcano.jpg /tmp/rofi-img.jpg
fi
## Run
rm /tmp/rofi-img.jpg
ln -s $image /tmp/rofi-img.jpg
rofi \
-modes drun,run,window,calc \
-show drun \
-theme /tmp/rofi-theme.rasi
# -theme ${dir}/${theme}.rasi

View File

@@ -23,12 +23,12 @@ configuration {
/*****----- Global Properties -----*****/
* {
font: "JetBrains Mono Nerd Font 10";
background: #1e1f29ba;
background-alt: #1e1f29ca;
background: #1c1c1cba;
background-alt: #1c1c1cca;
foreground: #FFe8EE;
selected: #E26273dd;
active: #E26273;
urgent: #9E2238;
selected: #9E2238dd;
active: #9E2238;
urgent: #D14781;
}
/*****----- Main Window -----*****/