aboutsummaryrefslogtreecommitdiff
path: root/scripts/wallpapermenu
blob: c90ff7cf22bdc1507e098f57208aacc5363a2ee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/fish

set dir "$HOME/Pictures/Backgrounds/"
set chosen (
  for file in (find $dir -type f)
    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)