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)))))
|
(get-root-layout root-wm)))))
|
||||||
|
|
||||||
(define (restore-layout root-wm)
|
(define (restore-layout root-wm)
|
||||||
(let ((fn (layout-filename (root-wm:dpy root-wm))))
|
(let* ((fn (layout-filename (root-wm:dpy root-wm)))
|
||||||
(if (file-exists? fn)
|
(layout (if (file-exists? fn)
|
||||||
(call-with-input-file fn
|
(call-with-input-file fn
|
||||||
(lambda (p)
|
(lambda (p) (port->sexp-list p)))
|
||||||
(create-root-layout root-wm
|
;; if no layout file exists, one switch-wm
|
||||||
(port->sexp-list p))))
|
;; workspace is the default
|
||||||
'())))
|
'((switch ())))))
|
||||||
|
(create-root-layout root-wm layout)))
|
||||||
|
|
||||||
;; *** configuration *************************************************
|
;; *** configuration *************************************************
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue