Move some code out of init into placement

It makes more sense to delegate to `placement.lisp' the creation of
workspaces since it is also this file that sets my preferences in
terms of workspaces per window.
This commit is contained in:
Lucien Cartier-Tilet 2021-07-25 10:55:58 +02:00
parent dd00e262a2
commit 12c7a6c078
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 13 additions and 11 deletions

View File

@ -33,15 +33,10 @@
(run-shell-command "autostart")
;;; workspaces
(when *initializing*
(grename "term")
(gnewbg "emacs")
(gnewbg "browser")
(gnewbg "files")
(gnewbg "discord")
(gnewbg "private"))
;;; load window placement rules
(load "~/.stumpwm.d/placement.lisp")
;;; load keybindings
(load "~/.stumpwm.d/keybindings.lisp")
;;; load ttf
@ -96,9 +91,6 @@
(load-module "swm-ssh")
(setq swm-ssh:*swm-ssh-default-term* "kitty")
;;; load window placement rules
(load "~/.stumpwm.d/placement.lisp")
;;; alert module
(load-module "alert-me")

View File

@ -1,3 +1,13 @@
;;; workspaces
(when *initializing*
(grename "term")
(gnewbg "emacs")
(gnewbg "browser")
(gnewbg "files")
(gnewbg "discord")
(gnewbg "media")
(gnewbg "private"))
(clear-window-placement-rules)
(define-frame-preference "browser"