blob: 5bf75f6766f6b7b3a1fb098f7993417d10de7ad6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
set -e
_rect=$(swq current output-full | jq -r '.rect')
w=$(echo "${_rect}" | jq -r '.width * 0.6')
h=$(echo "${_rect}" | jq -r '.height * 0.6')
x=$(echo "${_rect}" | jq -r "(.width - ${w}) / 2")
y=$(echo "${_rect}" | jq -r "(.height - ${h}) / 2")
exec swx -t -g "${x},${y} ${w}x${h}" fzfez fd -a -p
|