at commit 5502bb9b

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