diff options
Diffstat (limited to 'scripts/scripts/draw.sh')
-rwxr-xr-x | scripts/scripts/draw.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/scripts/draw.sh b/scripts/scripts/draw.sh new file mode 100755 index 0000000..8e34904 --- /dev/null +++ b/scripts/scripts/draw.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | # Spawn terminals interactively | ||
3 | # Requires slop, urxvt | ||
4 | |||
5 | 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 ) | ||
6 | (( W /= 14 )) | ||
7 | (( H /= 25 )) | ||
8 | |||
9 | g=${W}x${H}+${X}+${Y} | ||
10 | |||
11 | urxvtc -geometry $g | ||