mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-08-11 02:01:56 -07:00
docs: update
This commit is contained in:
4
catwm.c
4
catwm.c
@@ -71,7 +71,7 @@ static void select_desktop(int i);
|
|||||||
static void send_kill_signal(Window w);
|
static void send_kill_signal(Window w);
|
||||||
static void setup();
|
static void setup();
|
||||||
static void sigchld(int unused);
|
static void sigchld(int unused);
|
||||||
static void sh(const Arg arg);
|
static void run(const Arg arg);
|
||||||
static void update_current();
|
static void update_current();
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@@ -435,7 +435,7 @@ void sigchld(int unused) {
|
|||||||
while(0 < waitpid(-1, NULL, WNOHANG));
|
while(0 < waitpid(-1, NULL, WNOHANG));
|
||||||
}
|
}
|
||||||
|
|
||||||
void sh(const Arg arg) {
|
void run(const Arg arg) {
|
||||||
if (fork() == 0) {
|
if (fork() == 0) {
|
||||||
if (fork() == 0) {
|
if (fork() == 0) {
|
||||||
if (dis) close(ConnectionNumber(dis));
|
if (dis) close(ConnectionNumber(dis));
|
||||||
|
10
config.h
10
config.h
@@ -26,12 +26,12 @@ static struct key keys[] = {
|
|||||||
{MOD, XK_q, win_kill, {NULL}},
|
{MOD, XK_q, win_kill, {NULL}},
|
||||||
{MOD, XK_c, win_mid, {NULL}},
|
{MOD, XK_c, win_mid, {NULL}},
|
||||||
{MOD, XK_f, win_fs, {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}},
|
{MOD, XK_d, run, {.com = menu}},
|
||||||
{0, XF86XK_AudioRaiseVolume, sh, {.com = volup}},
|
{MOD, XK_Return, run, {.com = term}},
|
||||||
{MOD, XK_d, sh, {.com = menu}},
|
{0, XF86XK_AudioLowerVolume, run, {.com = voldown}},
|
||||||
{MOD, XK_Return, sh, {.com = term}},
|
{0, XF86XK_AudioRaiseVolume, run, {.com = volup}},
|
||||||
|
|
||||||
DESKTOP( XK_0, 0)
|
DESKTOP( XK_0, 0)
|
||||||
DESKTOP( XK_1, 1)
|
DESKTOP( XK_1, 1)
|
||||||
|
Reference in New Issue
Block a user