diff options
author | Thanos Apollo <[email protected]> | 2023-09-03 15:30:20 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-03 15:30:20 +0300 |
commit | f7c3db0c688b9b98762464cc9e4cc7c87a9dbe96 (patch) | |
tree | 5d42eadea41d1e6270007c7a82129ee5c93ac5f0 /.stumpwm.d/utils.lisp | |
parent | 1d570b3c17d23ae9813769d99a3ed48133d7ee44 (diff) |
stumpwm: modularize
Diffstat (limited to '.stumpwm.d/utils.lisp')
-rw-r--r-- | .stumpwm.d/utils.lisp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.stumpwm.d/utils.lisp b/.stumpwm.d/utils.lisp new file mode 100644 index 0000000..1aeae66 --- /dev/null +++ b/.stumpwm.d/utils.lisp @@ -0,0 +1,35 @@ +(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" + (user-homedir-pathname)))) + (when (probe-file quicklisp-init) + (load quicklisp-init))) + +(in-package :stumpwm) + +(setf *default-package* :stumpwm) +(set-module-dir "~/.stumpwm.d/modules") + +(load-module "kbd-layouts") +(load-module "mpd") +(load-module "pinentry") +(load-module "swm-gaps") +(load-module "pass") +(load-module "swm-emacs") +(load-module "end-session") +(load-module "globalwindows") +(load-module "urgentwindows") + +(ql:quickload :slynk) + +(stumpwm:defcommand sly-start-server () () + "Start a slynk server for sly." + (sb-thread:make-thread (lambda () (slynk:create-server :dont-close t)))) + + +(stumpwm:defcommand sly-stop-server () () + "Stop current slynk server for sly." + (sb-thread:make-thread (lambda () (slynk:stop-server 4005)))) + +(mpd:mpd-connect) + +(setf kbd-layouts:*caps-lock-behavior* :swapped) +(kbd-layouts:keyboard-layout-list "us" "gr" "bg -variant phonetic") |