dwm

my dwm build
Log | Files | Refs | LICENSE

commit b707bc8662abe0380301a3820b43711a7ec512da
parent b816e5cc4e91d79844b562685627f887153cfe44
Author: ssnf <ssnf@ssnf.xyz>
Date:   Mon, 28 Nov 2022 16:42:04 +0000

new shortcuts

Diffstat:
Mconfig.h | 26++++++++++++++------------
Mdwm.c | 2+-
2 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/config.h b/config.h @@ -92,19 +92,26 @@ static const char* spkrt[] = { "pamixer", "-t", NULL }; static const char* status[] = { "status", NULL }; static const char* stopdwm[] = { "stopdwm", NULL }; static const char* termcmd[] = { "st", NULL }; +static const char* tremc[] = { "st", "-e", "tremc", NULL }; #include <X11/XF86keysym.h> static Key keys[] = { /* modifier key function argument */ + { MOD, XK_w, spawn, {.v = browser } }, + { CTRL|SHIFT, XK_Escape, spawn, {.v = caps} }, { MOD|SHIFT, XK_i, spawn, {.v = color} }, { MOD, XK_c, spawn, {.v = compositor} }, - { MOD, XK_x, spawn, {.v = lock} }, { MOD, XK_F5, spawn, {.v = cyclebg} }, { MOD|SHIFT, XK_F5, spawn, {.v = cyclewe} }, + { MOD, XK_d, spawn, {.v = dmenucmd } }, { MOD, XK_g, spawn, {.v = games} }, + { MOD, XK_x, spawn, {.v = lock} }, { 0, XF86XK_ScreenSaver, spawn, {.v = lock} }, { 0, XF86XK_Suspend, spawn, {.v = lock} }, { 0, XF86XK_Sleep, spawn, {.v = lock} }, + { 0, XF86XK_Launch1, spawn, {.v = mict} }, + { MOD, XK_Pause, spawn, {.v = mict} }, + { 0, XF86XK_Display, spawn, {.v = mont} }, { MOD, XK_n, spawn, {.v = news} }, { MOD, XK_o, spawn, {.v = pass} }, { MOD|SHIFT, XK_p, spawn, {.v = paste} }, @@ -119,27 +126,22 @@ static Key keys[] = { { 0, XF86XK_AudioLowerVolume, spawn, {.v = spkrd} }, { MOD, XK_KP_Subtract, spawn, {.v = spkrd} }, { MOD, XK_u, spawn, {.v = status} }, - { 0, XF86XK_Launch1, spawn, {.v = mict} }, - { MOD, XK_Pause, spawn, {.v = mict} }, - { 0, XF86XK_Display, spawn, {.v = mont} }, - { CTRL|SHIFT, XK_Escape, spawn, {.v = caps} }, - { MOD, XK_d, spawn, {.v = dmenucmd } }, { MOD, XK_Return, spawn, {.v = termcmd } }, - { MOD, XK_w, spawn, {.v = browser } }, + { MOD, XK_t, spawn, {.v = tremc } }, { MOD, XK_b, togglebar, {0} }, - { MOD, XK_j, focusstack, {.i = +1 } }, - { MOD, XK_k, focusstack, {.i = 0 } }, + { MOD, XK_j, focusstack, {.i = 1 } }, + { MOD, XK_k, focusstack, {.i = 0 } }, { MOD, XK_h, setmfact, {.f = -0.05} }, - { MOD, XK_l, setmfact, {.f = +0.05} }, + { MOD, XK_l, setmfact, {.f = 0.05} }, { MOD, XK_space, zoom, {0} }, { MOD, XK_q, killclient, {0} }, { MOD, XK_0, view, {.ui = ~0 } }, { MOD|SHIFT, XK_0, tag, {.ui = ~0 } }, { MOD, XK_f, togglefullscr, {0} }, { MOD, XK_comma, focusmon, {.i = -1 } }, - { MOD, XK_period, focusmon, {.i = +1 } }, + { MOD, XK_period, focusmon, {.i = 1 } }, { MOD|SHIFT, XK_comma, tagmon, {.i = -1 } }, - { MOD|SHIFT, XK_period, tagmon, {.i = +1 } }, + { MOD|SHIFT, XK_period, tagmon, {.i = 1 } }, { MOD|SHIFT, XK_q, quit, {0} }, { MOD|CTRL|SHIFT, XK_q, spawn, {.v = stopdwm} }, { 0, XK_Super_L, NULL, {0} }, diff --git a/dwm.c b/dwm.c @@ -1912,7 +1912,7 @@ seturgent(Client* c, int urg) XWMHints* wmh; if (urg && !selmon->showbar) { - selmon->showbar = 1; + selmon->showbar = 2; updatebar(); } c->isurgent = urg;