From 45ef748361f3d977b349c6bb63da523cc5cd0334 Mon Sep 17 00:00:00 2001 From: riomoo Date: Sun, 26 Jan 2025 07:56:38 -0500 Subject: [PATCH 1/3] My version --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e3c61ae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +mwm From ea3d38202c5de3f14d26d9fbd5fc753c97505c25 Mon Sep 17 00:00:00 2001 From: riomoo Date: Sun, 26 Jan 2025 07:59:09 -0500 Subject: [PATCH 2/3] My Version with Hotkeys --- mwm-custom.c | 2 +- mwm.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mwm-custom.c b/mwm-custom.c index e2b4b8f..4bdd2f9 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("chromium &")) + map("w", system("firefox &")) map("t", system("xterm &")) map("l", system("rotK")) map("u", system("vol 5%-")) diff --git a/mwm.c b/mwm.c index e8cf603..7de50fd 100644 --- a/mwm.c +++ b/mwm.c @@ -10,7 +10,7 @@ int main() { Display *d = XOpenDisplay(0); Window r = DefaultRootWindow(d); XEvent e; XSelectInput(d, r, SubstructureRedirectMask); - grab("n", "q", "e"); + grab("n", "q", "e", "t"); while (!XNextEvent (d, &e)) { on(ConfigureRequest, XMoveResizeWindow(d, e.xconfigure.window, 0, 0, e.xconfigure.width, e.xconfigure.height)); @@ -18,6 +18,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("t", system("st -g 232x62+0+0 &")) map("e", system("dmenu_run &"))); } } From 9b3e994524f1747d9dc00b2a0b9c67696117860b Mon Sep 17 00:00:00 2001 From: riomoo Date: Sat, 15 Feb 2025 12:08:30 -0500 Subject: [PATCH 3/3] my needs hotkeys --- mwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mwm.c b/mwm.c index 7de50fd..934e581 100644 --- a/mwm.c +++ b/mwm.c @@ -13,7 +13,7 @@ int main() { grab("n", "q", "e", "t"); while (!XNextEvent (d, &e)) { - on(ConfigureRequest, XMoveResizeWindow(d, e.xconfigure.window, 0, 0, e.xconfigure.width, e.xconfigure.height)); + on(ConfigureRequest, XMoveResizeWindow(d, e.xconfigure.window, 0, 0, 2560, 1440)); 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))