Fixed some keybinds and switched dmenu for rofi
This commit is contained in:
parent
e8b6d29122
commit
f7fa13be5b
42
config.def.h
42
config.def.h
@ -102,11 +102,11 @@ static char *colors[][ColCount] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const char *const autostart[] = {
|
static const char *const autostart[] = {
|
||||||
"st", NULL,
|
// "st", NULL,
|
||||||
NULL /* terminate */
|
NULL /* terminate */
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *scratchpadcmd[] = {"s", "st", "-n", "spterm", NULL};
|
static const char *scratchpadcmd[] = {"s", "kitty", "--name", "spterm", NULL};
|
||||||
|
|
||||||
/* Tags
|
/* Tags
|
||||||
* In a traditional dwm the number of tags in use can be changed simply by changing the number
|
* In a traditional dwm the number of tags in use can be changed simply by changing the number
|
||||||
@ -137,7 +137,7 @@ static const char *scratchpadcmd[] = {"s", "st", "-n", "spterm", NULL};
|
|||||||
*/
|
*/
|
||||||
static char *tagicons[][NUMTAGS] =
|
static char *tagicons[][NUMTAGS] =
|
||||||
{
|
{
|
||||||
[DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" },
|
[DEFAULT_TAGS] = { "", "", "", "", "", "", "", " ", "" },
|
||||||
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
|
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
|
||||||
[ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" },
|
[ALT_TAGS_DECORATION] = { "<1>", "<2>", "<3>", "<4>", "<5>", "<6>", "<7>", "<8>", "<9>" },
|
||||||
};
|
};
|
||||||
@ -172,7 +172,7 @@ static const Rule rules[] = {
|
|||||||
RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1)
|
RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1)
|
||||||
RULE(.wintype = WTYPE "SPLASH", .isfloating = 1)
|
RULE(.wintype = WTYPE "SPLASH", .isfloating = 1)
|
||||||
RULE(.class = "Gimp", .tags = 1 << 4)
|
RULE(.class = "Gimp", .tags = 1 << 4)
|
||||||
RULE(.class = "Firefox", .tags = 1 << 7)
|
RULE(.class = "vivaldi-stable", .tags = 1 << 4)
|
||||||
RULE(.instance = "spterm", .scratchkey = 's', .isfloating = 1)
|
RULE(.instance = "spterm", .scratchkey = 's', .isfloating = 1)
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -228,22 +228,30 @@ static const Layout layouts[] = {
|
|||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
||||||
|
// static const char *dmenucmd[] = {
|
||||||
|
// "dmenu_run",
|
||||||
|
// "-m", dmenumon,
|
||||||
|
// "-fn", dmenufont,
|
||||||
|
// "-nb", normbgcolor,
|
||||||
|
// "-nf", normfgcolor,
|
||||||
|
// "-sb", selbgcolor,
|
||||||
|
// "-sf", selfgcolor,
|
||||||
|
// NULL
|
||||||
|
// };
|
||||||
static const char *dmenucmd[] = {
|
static const char *dmenucmd[] = {
|
||||||
"dmenu_run",
|
"rofi",
|
||||||
"-m", dmenumon,
|
"-show",
|
||||||
"-fn", dmenufont,
|
"drun",
|
||||||
"-nb", normbgcolor,
|
"--with-images",
|
||||||
"-nf", normfgcolor,
|
NULL
|
||||||
"-sb", selbgcolor,
|
|
||||||
"-sf", selfgcolor,
|
|
||||||
NULL
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *termcmd[] = { "kitty", NULL };
|
static const char *termcmd[] = { "kitty", NULL };
|
||||||
|
|
||||||
static const Key keys[] = {
|
static const Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||||
@ -256,11 +264,11 @@ static const Key keys[] = {
|
|||||||
{ MODKEY|ShiftMask, XK_o, setcfact, {0} },
|
{ MODKEY|ShiftMask, XK_o, setcfact, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
|
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
|
||||||
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
|
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
|
||||||
{ MODKEY, XK_Return, zoom, {0} },
|
{ MODKEY|ShiftMask, XK_Return, zoom, {0} },
|
||||||
{ Mod1Mask, XK_Tab, alttabstart, {0} },
|
{ Mod1Mask, XK_Tab, alttabstart, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_e, killclient, {0} },
|
{ MODKEY|ShiftMask, XK_q, killclient, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
{ MODKEY|ShiftMask, XK_e, quit, {0} },
|
||||||
{ MODKEY|ControlMask, XK_q, quit, {1} },
|
{ MODKEY|ControlMask, XK_e, quit, {1} },
|
||||||
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
|
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
|
||||||
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
|
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
|
||||||
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user