My Version with Hotkeys
This commit is contained in:
parent
45ef748361
commit
ea3d38202c
2 changed files with 3 additions and 2 deletions
3
mwm.c
3
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 &")));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue