diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-01-17 21:05:37 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-01-17 21:05:37 +0300 |
commit | e76d690119ee960463e378baaa846bac31921c91 (patch) | |
tree | ff3d24ccb7c5bcda50b64ac8c31ec1e01a1c77c8 /dotfiles/.local | |
parent | 5eee5b44924bf9079a67d5bc7612bfad56ddeed3 (diff) | |
download | swayrice-e76d690119ee960463e378baaa846bac31921c91.tar.gz swayrice-e76d690119ee960463e378baaa846bac31921c91.zip |
fix setbglsimple script
Diffstat (limited to 'dotfiles/.local')
-rwxr-xr-x | dotfiles/.local/bin/setbglsimple | 4 |
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 |