rice/scripts/new-wallpaper.sh

14 lines
179 B
Bash
Raw Normal View History

2021-07-28 23:54:53 -07:00
#!/bin/sh
# set -Eeuo pipefail
DIR=/home/sudacode/Pictures/wallpapers/
img=$(ls $DIR | shuf -n 1)
if [[ $# -gt 0 && $1 == "-v" ]]; then
echo $img
fi
feh --bg-scale $DIR$img