flake/users/guanranwang/home-manager/common/dotfiles/bin/wrapped-swww

12 lines
288 B
Text
Raw Normal View History

2023-09-19 00:17:43 +00:00
#!/bin/sh
# 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"