16 lines
208 B
Bash
Executable File
16 lines
208 B
Bash
Executable File
#!/usr/bin/env sh
|
|
# required packages:
|
|
# - feh
|
|
|
|
set -e
|
|
|
|
[ -z "$@" ] && exit 0
|
|
|
|
LAST_BG_LOCATION="$HOME/.cache/.last-bg"
|
|
|
|
feh --bg-scale $1
|
|
|
|
rm -f "$LAST_BG_LOCATION"
|
|
ln -s $1 $(realpath "$LAST_BG_LOCATION")
|
|
|