added hacky exit feature
This commit is contained in:
parent
b47ca1fbbe
commit
e57182299a
|
@ -15,6 +15,7 @@ static struct key keys[] = {
|
|||
{MOD, XK_q, win_kill, {0}},
|
||||
{MOD, XK_c, win_center, {0}},
|
||||
{MOD, XK_f, win_fs, {0}},
|
||||
{MOD, XK_e, wm_exit, {0}},
|
||||
|
||||
{MOD, XK_k, win_move, {.com = (const char*[]){"move", "n"}, .i = 10}},
|
||||
{MOD, XK_j, win_move, {.com = (const char*[]){"move", "s"}, .i = 10}},
|
||||
|
|
4
sowm.c
4
sowm.c
|
@ -40,6 +40,10 @@ unsigned long getcolor(const char *col) {
|
|||
return (!XAllocNamedColor(d, m, col, &c, &c))?0:c.pixel;
|
||||
}
|
||||
|
||||
void wm_exit(void) {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void win_move(const Arg arg) {
|
||||
int r = arg.com[0][0] == 'r';
|
||||
char m = arg.com[1][0];
|
||||
|
|
Reference in New Issue