aboutsummaryrefslogtreecommitdiff
path: root/scripts/scripts/draw.sh
blob: 8e34904d87c570eae6b5c661e4c5aee8dacd1023 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
# Spawn terminals interactively
# Requires slop, urxvt

read -r X Y W H < <(slop -f "%x %y %w %h" -b 4 -c 0.8,0.8,0.8,0.8 -t 0 )
(( W /= 14 ))
(( H /= 25 ))

g=${W}x${H}+${X}+${Y}

urxvtc -geometry $g