at commit 31b6c823

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