summary refs log tree commit diff
path: root/bin/fs
blob: 0586ab52fb5cce14686e15887fee834c6f646de7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

dir=$(readlink -f -- "$1" || pwd)

# _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) + .x")
# y=$(echo "${_rect}" | jq -r "((.height - ${h}) / 2) + .y")

echo "$dir"
# exec swx -t -g "${x},${y} ${w}x${h}" fzfez fd -a -p "${dir}"
exec swx -t -F 0.6 fzfez fd -a -p "${dir}"