2020-06-15 14:51:47 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-06-25 19:28:33 +00:00
|
|
|
SCRIPT=$(readlink -f "$0")
|
|
|
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
|
|
|
2023-10-17 22:37:29 +00:00
|
|
|
[ -z "$1" ] && exit 0
|
2020-06-15 14:51:47 +00:00
|
|
|
|
2020-06-24 10:11:29 +00:00
|
|
|
LAST_BG_LOCATION="$XDG_CACHE_HOME/last-bg"
|
2020-06-15 14:51:47 +00:00
|
|
|
|
2023-12-02 01:24:01 +00:00
|
|
|
#echo "$(realpath $1)" > $LAST_BG_LOCATION
|
|
|
|
ln -sf $1 $LAST_BG_LOCATION
|
2020-06-15 14:51:47 +00:00
|
|
|
|
2023-12-02 01:24:01 +00:00
|
|
|
swww img $1
|
|
|
|
|
|
|
|
$SCRIPTPATH/wal.sh "$1"
|
2020-06-15 14:51:47 +00:00
|
|
|
|