shithub: riow

Download patch

ref: 578be99593ff5c55e537dabf86f1536f54905e90
parent: f52ddd573b8fd62af7fc55686309e9e37b2b27ba
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Jan 25 07:33:46 EST 2021

use either bar or statusmsg

--- a/README.md
+++ b/README.md
@@ -26,10 +26,9 @@
 Run `mk install` in this repo.  Apply `9front.diff` on your sources
  (`hg import --no-commit 9front.diff`), rebuild `rio`.
 
-To start the actual window management thingy, open a new window in
-`rio` and type `riow < /srv/riogkbd*`. See *Keys* section and it you're
-happy with everything you can start `riow` automatically next time.
-Or not, you can use it when you need it.
+To start `riow`, either through `riostart`, or by hand:
+
+	window -hide 'riow < `{echo $wsys | sed ''s/rio/riogkbd/''}'
 
 Modify `riow` to your own needs.
 
--- a/riow
+++ b/riow
@@ -156,11 +156,15 @@
 scrsize
 
 fn work {
-	echo '    '^$curdesktop
+	echo $curdesktop
 	while(s=`{read}){
 		handle $s
-		echo '    '^$curdesktop
+		echo $curdesktop
 	}
 }
 
-gkbd | work | aux/statusmsg -k -w `{echo $screenw-100|bc}^,`{echo $screenh-60|bc}^,$screenw^,$screenh desktop
+fn display {
+	bar || aux/statusmsg -k -w `{echo $screenw-100|bc}^,`{echo $screenh-60|bc}^,$screenw^,$screenh desktop
+}
+
+gkbd < `{echo $wsys | sed 's/rio\./riogkbd./'} | work | display