13 lines
453 B
Text
13 lines
453 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
targetwidth="1920"
|
||
|
targetheight="1080"
|
||
|
dimensions="$(bspc query -T -n | jq '.client.tiledRectangle | .width, .height')"
|
||
|
width=$(echo "$dimensions" | head -n 1)
|
||
|
height=$(echo "$dimensions" | tail -n 1)
|
||
|
diffwidth=$((targetwidth - width))
|
||
|
diffheight=$((targetheight - height))
|
||
|
# bspc node -d
|
||
|
echo "width: ${width}, height ${height}, dw ${diffwidth}, dh ${diffheight}"
|
||
|
bspc node focused --resize bottom_right "$diffwidth" "$diffheight"
|