aboutsummaryrefslogtreecommitdiff
path: root/scripts/scripts/draw.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scripts/draw.sh')
-rwxr-xr-xscripts/scripts/draw.sh11
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
5read -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
9g=${W}x${H}+${X}+${Y}
10
11urxvtc -geometry $g