Merge pull request 'Dev merging to mine' (#1)

Reviewed-on: #1
This commit is contained in:
riomoo 2025-01-26 08:45:17 -05:00 committed by moocommiter
commit a67f56bad2
Signed by: moocommiter
GPG key ID: 29F2C27EDCA7CD7C
3 changed files with 4 additions and 2 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))
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%-"))

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");
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 &")));
}
}