22 lines
369 B
Bash
Executable File
22 lines
369 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
|
|
#hyprctl hyprpaper preload "$1"
|
|
#hyprctl hyprpaper wallpaper "HDMI-A-1,$1"
|
|
#hyprctl hyprpaper unload all
|
|
|
|
$SCRIPTPATH/wal.sh "$1"
|
|
|