added a default layout: one workspace with a switch-wm
This commit is contained in:
parent
4259d7f0dd
commit
ec01b31f94
|
@ -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)
|
||||
(let* ((fn (layout-filename (root-wm:dpy root-wm)))
|
||||
(layout (if (file-exists? fn)
|
||||
(call-with-input-file fn
|
||||
(lambda (p)
|
||||
(create-root-layout root-wm
|
||||
(port->sexp-list p))))
|
||||
'())))
|
||||
(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 *************************************************
|
||||
|
||||
|
|
Loading…
Reference in New Issue