old-dots

My old dotfiles
Log | Files | Refs

set-wallpaper (220B)


      1 #!/bin/sh
      2 
      3 file=$1
      4 
      5 [ -f $1 ] && file=~/.config/wall.${file##*.}
      6 [ -d $1 ] && file=$(find $1 -maxdepth 1 | shuf -n 1)
      7 [ -z $1 ] && file=$(find ~/Wallpapers -maxdepth 1 | shuf -n 1)
      8 
      9 wal -i $file
     10 
     11 xwallpaper --zoom $file