-
Notifications
You must be signed in to change notification settings - Fork 13
/
README
122 lines (87 loc) · 4.38 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
━━━━━━━━━━━━━━━━━━━━━
GUILE-WM
Mark Witmer
━━━━━━━━━━━━━━━━━━━━━
Table of Contents
─────────────────
1 Overview
2 Why?
3 What's Actually Implemented
4 What's Not Implemented
.. 4.1 Wish List
.. 4.2 Even Crazier Wish List
5 Sample
6 Installation and Prerequisites
1 Overview
══════════
Guile-WM is a framework for creating an X window manager (or any other
X application, really) and a set of useful modules designed for that
purpose. Users are encouraged to pick and choose from ones presently
available and contribute their own as well!
Guile-WM relies /heavily/ on its user init file. In fact, it won't do
anything on its own without one. The intention is to provide something
100% configurable.
2 Why?
══════
Guile Scheme is just so much fun to work with, I wanted to build my
house out of it. (Also, StumpWM won't work in my Linux distribution
right now. And I find LOOP macros unsettling for some reason.)
I didn't want to build a WM on top of xlib. It's obsolete, or should
be, anyway. XCB is great, and when I saw that it comes with XML files
that describe the X protocol so that you can easily implement an X
client in a different language, I decided to build the whole X client
stack in Scheme. Why not? So I made Guile XCB. And then, finally, I
got to work on this.
3 What's Actually Implemented
═════════════════════════════
• keymaps/minibuffer/user-defined commands: The usual emacs-style
stuff.
• A tiling window manager inspired by Stumpwm, as well as a drag/drop
window manager inspired by tinywm
• Built-in repl: make changes to the WM while it's running, talk to
the X server directly (if you're into that kind of thing), integrate
with Geiser in Emacs, etc. (Note: if you call a procedure that talks
to the X server, use the metacommand ,post to evalute the
expression. That way it'll run inside the event loop on the other
thread).
• Some icccm support
• And more! It's completely open, so you could implement whatever
window-management paradigm you like.
4 What's Not Implemented
════════════════════════
There's a lot more I'd like to do, but as you can see, it gets
progressively more grandiose and, um… crazy, perhaps.
4.1 Wish List
─────────────
• Some kind of window decoration
• Built-in replacements for those little X utility programs (xmodmap,
xsetbg, etc.) I did part of xrandr as a proof-of-concept.
• A status bar/modeline type thing
• Antialiased fonts! guile-pango would be good for this.
• Whatever else you want… ideas (and implementations) welcome.
4.2 Even Crazier Wish List
──────────────────────────
• Implement enough of a widget toolkit to actually run Guile Emacs
inside of Guile-WM all on Guile XCB. You would basically be running
a Lisp-machine at that point and all of your friends will be
jealous.
• Add support for XInput2 to Guile XCB w/touch gestures and whatnot
and build a hackable mobile device interface. Isn't it a tragedy
that smartphones are becoming the most common type of computer, but
you can't really hack on them? Real XCB does support XInput2 now, so
I'm running out of excuses…
• Build a WM on top of Wayland. That would require a Scheme Wayland
client, which could be built along the lines of Guile XCB, since the
Wayland projects comes with the same kind of XML spec files that XCB
uses.
5 Sample
════════
An annotated sample init file is included with the distribution as
"wm-init-sample.scm". It demonstrates how to set up the configurable
values in the available modules. Copy it to ~/.guile-wm to try it out.
6 Installation and Prerequisites
════════════════════════════════
You can use the typical ./configure, make, make install chain to build
Guile-WM.
Guile-WM requires Guile XCB and the latest release of Guile (2.0.9).