From f3606d3fd02778bd7d6f53aa53ae93ab4bb55718 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Sat, 2 Dec 2023 02:24:01 +0100 Subject: [PATCH] screenshit stuff --- .local/share/scripts/set-bg.sh | 12 ++++++++---- .local/share/scripts/take-screenshot.sh | 4 +--- 2 files changed, 9 insertions(+), 7 deletions(-) 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"