diff options
Diffstat (limited to 'dotfiles')
-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 |