aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/setbglsimple
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-01-17 21:05:37 +0300
committerYaroslav <contact@yaroslavps.com>2020-01-17 21:05:37 +0300
commite76d690119ee960463e378baaa846bac31921c91 (patch)
treeff3d24ccb7c5bcda50b64ac8c31ec1e01a1c77c8 /dotfiles/.local/bin/setbglsimple
parent5eee5b44924bf9079a67d5bc7612bfad56ddeed3 (diff)
downloadswayrice-e76d690119ee960463e378baaa846bac31921c91.tar.gz
swayrice-e76d690119ee960463e378baaa846bac31921c91.zip
fix setbglsimple script
Diffstat (limited to 'dotfiles/.local/bin/setbglsimple')
-rwxr-xr-xdotfiles/.local/bin/setbglsimple4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/.local/bin/setbglsimple b/dotfiles/.local/bin/setbglsimple
index ea2c5f2..51ac5ba 100755
--- a/dotfiles/.local/bin/setbglsimple
+++ b/dotfiles/.local/bin/setbglsimple
@@ -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 ~/.config/lock.png -gravity center -composite ~/.config/lockwall.png