diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e3c61ae..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -mwm diff --git a/mwm-custom.c b/mwm-custom.c index 4bdd2f9..e2b4b8f 100644 --- a/mwm-custom.c +++ b/mwm-custom.c @@ -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%-")) diff --git a/mwm.c b/mwm.c index 934e581..e8cf603 100644 --- a/mwm.c +++ b/mwm.c @@ -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 &"))); } }