aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.scripts/setbglsimple
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2019-10-21 22:23:00 +0300
committerYaroslav <contact@yaroslavps.com>2019-10-21 22:23:00 +0300
commitcf2c54a481a587af7639ec936e66895aa1153b4c (patch)
tree5d4204a11d3497cf4aac2b46cbe6fafe72bea29c /dotfiles/.scripts/setbglsimple
parent99a461da7c1065c18628fbd7314a135a41d5707e (diff)
downloadswayrice-cf2c54a481a587af7639ec936e66895aa1153b4c.tar.gz
swayrice-cf2c54a481a587af7639ec936e66895aa1153b4c.zip
got rid of xorg and i3 dependencies on some scripts
Diffstat (limited to 'dotfiles/.scripts/setbglsimple')
-rwxr-xr-xdotfiles/.scripts/setbglsimple4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotfiles/.scripts/setbglsimple b/dotfiles/.scripts/setbglsimple
index ea2c5f2..51ac5ba 100755
--- a/dotfiles/.scripts/setbglsimple
+++ b/dotfiles/.scripts/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