at commit a0296e8f

1 ;;;; common lisp window manager
2 ;;;;
3 ;;;; example user init file
4
5 (in-package #:clwm-user)
6
7 (defclass my-wm (mousebinds-mixin
8 pointer-keybinds-mixin
9 ignored-clients-mixin
10 focus-tracking-mixin
11 sloppy-focus-follows-mouse-mixin
12 wm)
13 ())
14
15 (defmethod key-bindings append ((wm my-wm))
16 `(((:control :mod-1 #\Return) . ,(spawn-command "xterm"))
17 ((:control :mod-1 #\x) . close-command)
18 ((:mod-1 #\Return) . hide-command)
19 ((:mod-1 :up) . raise-command)
20 ((:mod-1 :down) . lower-command)))
21
22 (defmethod mouse-bindings append ((wm my-wm))
23 '(((:mod-1 1) . drag-move)
24 ((:mod-1 3) . drag-resize)))
25
26 (run-wm 'my-wm)
27
28 ;; if slynk is desired
29 ;; (start-slynk)