commit 0a3e695
hovercats
·
2023-04-15 16:25:57 +0000 UTC
parent f446c14
add alt-tab. this fixes border issues with focus script
1 files changed,
+21,
-0
+21,
-0
1@@ -0,0 +1,21 @@
2+#!/bin/rc
3+
4+CUR=`{pfw}
5+
6+switch($1) {
7+ case n
8+ wid=`{lsw | grep -v $CUR | sed '1 p;d'}
9+ case p
10+ wid=`{lsw | grep -v $CUR | sed '$ p;d'}
11+ case *
12+ echo 'Usage: n|p' && exit 1
13+}
14+
15+if (test -z $"wid) {
16+ echo 'No window to focus on'
17+ exit 1
18+}
19+if not {
20+ chwso -r $"wid
21+ wtf $"wid
22+}