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

19 lines
264 B
Bash
Executable File

#!/usr/bin/env sh
set -e
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
[ -z "$1" ] && exit 0
LAST_BG_LOCATION="$XDG_CACHE_HOME/last-bg"
#echo "$(realpath $1)" > $LAST_BG_LOCATION
ln -sf $1 $LAST_BG_LOCATION
swww img $1
$SCRIPTPATH/wal.sh "$1"