aboutsummaryrefslogtreecommitdiff
path: root/scripts/wallpapermenu
blob: a67e6fd8d0212eed7bee57735bc8276892a5ad1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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)
			echo -en "$file\0icon\x1fthumbnail://$file\n"
		end | rofi -dmenu -p " " -show-icons -theme ~/.config/rofi/wallpapermenu.rasi)
	if test $chosen != $IMG
		~/.config/scripts/set_background (echo $chosen)
	end
end