Compare commits

..

No commits in common. "ea3d38202c5de3f14d26d9fbd5fc753c97505c25" and "8a1f8d5788711f6041a2f894a9e8aae5cb5f5272" have entirely different histories.

3 changed files with 2 additions and 4 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
mwm

View file

@ -19,7 +19,7 @@ int main() {
XSetInputFocus(d, e.xmaprequest.window, 2, 0))
on(KeyPress, map("n", XCirculateSubwindowsUp(d, r); XSetInputFocus(d, e.xkey.window, 2, 0))
map("q", XKillClient(d, e.xkey.subwindow))
map("w", system("firefox &"))
map("w", system("chromium &"))
map("t", system("xterm &"))
map("l", system("rotK"))
map("u", system("vol 5%-"))

3
mwm.c
View file

@ -10,7 +10,7 @@
int main() {
Display *d = XOpenDisplay(0); Window r = DefaultRootWindow(d); XEvent e;
XSelectInput(d, r, SubstructureRedirectMask);
grab("n", "q", "e", "t");
grab("n", "q", "e");
while (!XNextEvent (d, &e)) {
on(ConfigureRequest, XMoveResizeWindow(d, e.xconfigure.window, 0, 0, e.xconfigure.width, e.xconfigure.height));
@ -18,7 +18,6 @@ int main() {
XSetInputFocus(d, e.xmaprequest.window, 2, 0));
on(KeyPress, map("n", XCirculateSubwindowsUp(d, r); XSetInputFocus(d, e.xkey.window, 2, 0))
map("q", XKillClient(d, e.xkey.subwindow))
map("t", system("st -g 232x62+0+0 &"))
map("e", system("dmenu_run &")));
}
}