at commit 04b30b0b

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