add: alpha for st & new layouts for dwm
This commit is contained in:
+9
-5
@@ -51,6 +51,8 @@ static const Rule rules[] = {
|
||||
{ NULL, "keepassxc", NULL, SPTAG(2), 1, -1 },
|
||||
{ NULL, "spnmtui", NULL, SPTAG(3), 1, -1 },
|
||||
{ NULL, "spmusic", NULL, SPTAG(4), 1, -1 },
|
||||
{ "st-256color", NULL, NULL, 1 << 0, 0, -1 },
|
||||
{ "firefox", NULL, NULL, 1 << 1, 0, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
@@ -60,11 +62,14 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi
|
||||
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
|
||||
static const int refreshrate = 120; /* refresh rate (per second) for client move/resize */
|
||||
|
||||
#include "fibonacci.c"
|
||||
static const Layout layouts[] = {
|
||||
/* symbol arrange function */
|
||||
{ "[\\]", dwindle },
|
||||
{ "[]=", tile }, /* first entry is default */
|
||||
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||
{ "[M]", monocle },
|
||||
{ "[@]", spiral },
|
||||
};
|
||||
|
||||
/* key definitions */
|
||||
@@ -87,7 +92,7 @@ static const char *djcmd[] = { "dj.sh", NULL };
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
// essential apps
|
||||
{ MODKEY, XK_d, spawn, {.v = dmenucmd } },
|
||||
{ MODKEY, XK_space, spawn, {.v = dmenucmd } },
|
||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY, XK_m, spawn, {.v = djcmd } },
|
||||
// window management
|
||||
@@ -96,17 +101,15 @@ static const Key keys[] = {
|
||||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
||||
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
||||
{ MODKEY, XK_q, killclient, {0} },
|
||||
{ MODKEY, XK_space, togglefloating, {0} },
|
||||
{ MODKEY|ShiftMask, XK_f, togglefloating, {0} },
|
||||
// focus change (tags and monitors)
|
||||
//{ MODKEY, XK_0, view, {.ui = ~0 } },
|
||||
//{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
|
||||
{ MODKEY, XK_period, focusmon, {.i = +1 } },
|
||||
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
|
||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||
// scratchpads
|
||||
{ MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } }, // ephemeral term
|
||||
{ MODKEY|ShiftMask, XK_f, togglescratch, {.ui = 1 } }, // file manager
|
||||
{ MODKEY, XK_f, togglescratch, {.ui = 1 } }, // file manager
|
||||
{ MODKEY, XK_p, togglescratch, {.ui = 2 } }, // keepass
|
||||
{ MODKEY, XK_n, togglescratch, {.ui = 3 } }, // nmtui
|
||||
{ MODKEY|ShiftMask, XK_m, togglescratch, {.ui = 4 } }, // music
|
||||
@@ -120,6 +123,7 @@ static const Key keys[] = {
|
||||
TAGKEYS( XK_7, 6)
|
||||
TAGKEYS( XK_8, 7)
|
||||
TAGKEYS( XK_9, 8)
|
||||
// misc
|
||||
{ MODKEY|ShiftMask, XK_e, quit, {0} },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user