rice/scripts/new-wallpaper.sh
2021-07-28 23:54:53 -07:00

14 lines
179 B
Bash
Executable File

#!/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