summaryrefslogtreecommitdiff
path: root/.stumpwm.d/utils.lisp
blob: 1aeae66db823a2626bb8acb3bdeb272b59b62001 (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")

(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")