Commit Diff


commit - facb7f01c49487de661d07821e484d9dbffdcf83
commit + 41361a3a07c7ea382840e2a81580548cad1608d7
blob - b62b5fc52361f6cbe1c7310060255a10ea20dd8e
blob + d40fc45fc4cfd02947ea5de03957a4b47297dbb0
--- config/herbstluftwm/autostart.lp
+++ config/herbstluftwm/autostart.lp
@@ -216,6 +216,18 @@ rules
 
 	hc set tree_style '╾│ ├└╼─┐'
 
+A cool thing about herbstluftwm is that I can "dump" the layout and
+later reload it:
+
+	load_layout() {
+		if [ -f "$2" ]; then
+			hc load $1 "$(cat $2)"
+		fi
+	}
+
+	load_layout 2 ~/herbst.ws.2
+	load_layout 3 ~/herbst.ws.3
+
 unlock, just to be sure
 
 	hc unlock