commit 4e69359
hovercats
·
2022-10-19 01:09:32 +0000 UTC
parent aeaf061
add drawterm script for using xmenu
1 files changed,
+16,
-0
A
drawterm
A
drawterm
+16,
-0
1@@ -0,0 +1,16 @@
2+#!/bin/sh
3+
4+# draw a new terminal
5+# requires xrectsel
6+
7+wf=8
8+hf=19
9+ib=2
10+ob=8
11+
12+xrectsel | tr 'x+' ' ' | {
13+read w h x y
14+w=$(( ( w - (ib + ob)*2 ) / wf ))
15+h=$(( ( h - (ib + ob)*2 ) / hf ))
16+exec st -g ${w}x${h}+${x}+${y}
17+}