blob: b60c64645386cb0e3e6210d355710fd87b7062f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/fish
if test -z $argv[1]
echo "Provide a directory"
else
~/.config/scripts/set_background (
for file in (fd -a -t f -d 1 -E "$(basename "$IMG")" -e jpg -e png -e webp . "$argv[1]")
echo -en "$file\0icon\x1fthumbnail://$file\n"
end | rofi -dmenu -p " " -show-icons -theme ~/.config/rofi/wallpapermenu.rasi)
end
|