dotfiles-remastered/.local/share/scripts/set-bg.sh
2023-12-02 02:24:01 +01:00

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"