at commit 7f2aa7db

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