summaryrefslogtreecommitdiff
path: root/.stumpwm.d/utils.lisp
blob: 236f6f27476e6e0dd7acf0a144979222cefe31b7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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")

(stumpwm:load-module "notifications")
(stumpwm:load-module "productivity")
(stumpwm:load-module "kbd-layouts")
(stumpwm:load-module "mpd")
(stumpwm:load-module "pinentry")
(stumpwm:load-module "pass")
(stumpwm:load-module "swm-emacs")
(stumpwm:load-module "end-session")
(stumpwm:load-module "globalwindows")
(stumpwm: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")