mfwm

A tiling fork of dylanaraps sowm.
git clone git://depsterr.com/git/mfwm
Log | Files | Refs | README | LICENSE

commit 51bb53f6c343460560e3a515660906fbc38be56d
parent 9fb183c11a3652f8e1b11eeb1c93a19a645ca084
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Fri, 11 Oct 2019 20:35:56 +0300

docs: update

Diffstat:
Mcatwm.c | 6+++---
Mconfig.h | 10+++++-----
2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/catwm.c b/catwm.c @@ -18,7 +18,7 @@ #include <signal.h> #include <sys/wait.h> -#define TABLENGTH(X) (sizeof(X)/sizeof(*X)) +#define TABLENGTH(X) (sizeof(X)/sizeof(*X)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) typedef union { @@ -71,7 +71,7 @@ static void select_desktop(int i); static void send_kill_signal(Window w); static void setup(); static void sigchld(int unused); -static void sh(const Arg arg); +static void run(const Arg arg); static void update_current(); #include "config.h" @@ -435,7 +435,7 @@ void sigchld(int unused) { while(0 < waitpid(-1, NULL, WNOHANG)); } -void sh(const Arg arg) { +void run(const Arg arg) { if (fork() == 0) { if (fork() == 0) { if (dis) close(ConnectionNumber(dis)); diff --git a/config.h b/config.h @@ -26,12 +26,12 @@ static struct key keys[] = { {MOD, XK_q, win_kill, {NULL}}, {MOD, XK_c, win_mid, {NULL}}, {MOD, XK_f, win_fs, {NULL}}, - {Mod1Mask, XK_Tab, win_nex, {NULL}}, + {Mod1Mask, XK_Tab, win_next, {NULL}}, - {0, XF86XK_AudioLowerVolume, sh, {.com = voldown}}, - {0, XF86XK_AudioRaiseVolume, sh, {.com = volup}}, - {MOD, XK_d, sh, {.com = menu}}, - {MOD, XK_Return, sh, {.com = term}}, + {MOD, XK_d, run, {.com = menu}}, + {MOD, XK_Return, run, {.com = term}}, + {0, XF86XK_AudioLowerVolume, run, {.com = voldown}}, + {0, XF86XK_AudioRaiseVolume, run, {.com = volup}}, DESKTOP( XK_0, 0) DESKTOP( XK_1, 1)