Compare commits

..

No commits in common. "mine" and "main" have entirely different histories.
mine ... main

3 changed files with 3 additions and 5 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%-"))

5
mwm.c
View file

@ -10,15 +10,14 @@
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, 2560, 1440));
on(ConfigureRequest, XMoveResizeWindow(d, e.xconfigure.window, 0, 0, e.xconfigure.width, e.xconfigure.height));
on(MapRequest, XMapWindow(d, e.xmaprequest.window);
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 &")));
}
}