at commit 84db1d64

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