flake/nixos/profiles/common/graphical/home/scripts/bin/wrapped-swww
2024-01-17 19:53:00 +08:00

11 lines
298 B
Bash
Executable file

#!/usr/bin/env bash
# fuck this is so dumb
XPOS=$((hyprctl cursorpos) | awk '{print $1}')
YPOS=$(((1080-"$(hyprctl cursorpos | awk '{print $2}')")))
#echo $XPOS $YPOS
pkill mpvpaper
swww img --transition-type grow --transition-pos "$XPOS $YPOS" --transition-fps 60 --transition-duration 1 "$1"