aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.scripts/setbglblur
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.scripts/setbglblur')
-rwxr-xr-xdotfiles/.scripts/setbglblur4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/.scripts/setbglblur b/dotfiles/.scripts/setbglblur
index 8de5e6f..8a3d51b 100755
--- a/dotfiles/.scripts/setbglblur
+++ b/dotfiles/.scripts/setbglblur
@@ -1,7 +1,7 @@
#!/bin/sh
-vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize))
-horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth))
+vertical=$(swaymsg -t get_outputs | jq ".[0].current_mode.height")
+horizontal=$(swaymsg -t get_outputs | jq ".[0].current_mode.width")
convert $1 -resize ${horizontal}x${vertical}\> ~/.config/lockwall.png
convert ~/.config/lockwall.png -brightness-contrast -20,-20 -paint 1 -noise 0x8 -blur 9,9 ~/.config/lockwall.png