diff --git a/.local/share/scripts/set-bg.sh b/.local/share/scripts/set-bg.sh index 2dfb302..f499735 100755 --- a/.local/share/scripts/set-bg.sh +++ b/.local/share/scripts/set-bg.sh @@ -9,9 +9,13 @@ SCRIPTPATH=$(dirname "$SCRIPT") LAST_BG_LOCATION="$XDG_CACHE_HOME/last-bg" -echo "$(realpath $1)" > $LAST_BG_LOCATION +#echo "$(realpath $1)" > $LAST_BG_LOCATION +ln -sf $1 $LAST_BG_LOCATION -hyprctl hyprpaper preload "$1" -hyprctl hyprpaper wallpaper "HDMI-A-1,$1" -hyprctl hyprpaper unload all +swww img $1 +#hyprctl hyprpaper preload "$1" +#hyprctl hyprpaper wallpaper "HDMI-A-1,$1" +#hyprctl hyprpaper unload all + +$SCRIPTPATH/wal.sh "$1" diff --git a/.local/share/scripts/take-screenshot.sh b/.local/share/scripts/take-screenshot.sh index 79df64c..84ea361 100755 --- a/.local/share/scripts/take-screenshot.sh +++ b/.local/share/scripts/take-screenshot.sh @@ -8,9 +8,7 @@ set -e TMPDIR=$(mktemp -d) -cd $TMPDIR - -grim -g "$(slurp)" +GRIM_DEFAULT_DIR="$TMPDIR" grim -g "$(slurp)" filename="$(date +"%d-%m-%y-%H-%M-%Z").png"