dotfiles-remastered/.local/share/scripts/set-bg.sh

16 lines
211 B
Bash
Raw Normal View History

2020-06-15 14:51:47 +00:00
#!/usr/bin/env sh
# required packages:
# - feh
set -e
[ -z "$@" ] && exit 0
LAST_BG_LOCATION="$XDG_CACHE_HOME/.last-bg"
feh --bg-scale $1
rm -f "$LAST_BG_LOCATION"
ln -s $1 $(realpath "$LAST_BG_LOCATION")