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

22 lines
369 B
Bash
Raw Normal View History

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
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
#hyprctl hyprpaper preload "$1"
#hyprctl hyprpaper wallpaper "HDMI-A-1,$1"
#hyprctl hyprpaper unload all
$SCRIPTPATH/wal.sh "$1"
2020-06-15 14:51:47 +00:00