blob: 1ddf308b7df8ef0e6e9c48ae7ab4ebe7b2b28843 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/fish
if test -z $argv[1]
echo "Provide a directory"
else
set chosen (
for file in (fd . $argv[1] -t f -d 1)
if test -z $IMG; or test $file != $IMG
echo -en "$file\0icon\x1fthumbnail://$file\n"
end
end | rofi -dmenu -p " " -show-icons -theme ~/.config/rofi/wallpapermenu.rasi)
~/.config/scripts/set_background (echo $chosen)
end
|