screenshit stuff

This commit is contained in:
Niklas Kapelle 2023-12-02 02:24:01 +01:00
parent 5c9cb4ef94
commit f3606d3fd0
Signed by: niklas
GPG Key ID: 4EB651B36D841D16
2 changed files with 9 additions and 7 deletions

View File

@ -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"

View File

@ -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"