at commit 2aa41890

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