Compare commits

...
Sign in to create a new pull request.

5 commits
main ... mine

Author SHA1 Message Date
920950c278
Merge branch 'dev' into mine 2025-02-15 12:08:54 -05:00
9b3e994524
my needs hotkeys 2025-02-15 12:08:30 -05:00
a67f56bad2
Merge pull request 'Dev merging to mine' (#1)
Reviewed-on: #1
2025-01-26 08:45:17 -05:00
ea3d38202c
My Version with Hotkeys 2025-01-26 07:59:09 -05:00
45ef748361
My version 2025-01-26 07:56:38 -05:00
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
mwm

View file

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

5
mwm.c
View file

@ -10,14 +10,15 @@
int main() { int main() {
Display *d = XOpenDisplay(0); Window r = DefaultRootWindow(d); XEvent e; Display *d = XOpenDisplay(0); Window r = DefaultRootWindow(d); XEvent e;
XSelectInput(d, r, SubstructureRedirectMask); XSelectInput(d, r, SubstructureRedirectMask);
grab("n", "q", "e"); grab("n", "q", "e", "t");
while (!XNextEvent (d, &e)) { 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); on(MapRequest, XMapWindow(d, e.xmaprequest.window);
XSetInputFocus(d, e.xmaprequest.window, 2, 0)); XSetInputFocus(d, e.xmaprequest.window, 2, 0));
on(KeyPress, map("n", XCirculateSubwindowsUp(d, r); XSetInputFocus(d, e.xkey.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("q", XKillClient(d, e.xkey.subwindow))
map("t", system("st -g 232x62+0+0 &"))
map("e", system("dmenu_run &"))); map("e", system("dmenu_run &")));
} }
} }