added a default layout: one workspace with a switch-wm

This commit is contained in:
frese 2003-05-01 13:59:28 +00:00
parent 4259d7f0dd
commit ec01b31f94
1 changed files with 8 additions and 7 deletions

View File

@ -56,13 +56,14 @@
(get-root-layout root-wm)))))
(define (restore-layout root-wm)
(let ((fn (layout-filename (root-wm:dpy root-wm))))
(if (file-exists? fn)
(call-with-input-file fn
(lambda (p)
(create-root-layout root-wm
(port->sexp-list p))))
'())))
(let* ((fn (layout-filename (root-wm:dpy root-wm)))
(layout (if (file-exists? fn)
(call-with-input-file fn
(lambda (p) (port->sexp-list p)))
;; if no layout file exists, one switch-wm
;; workspace is the default
'((switch ())))))
(create-root-layout root-wm layout)))
;; *** configuration *************************************************