Fixed some keybinds and switched dmenu for rofi

This commit is contained in:
ganome 2025-03-15 22:27:02 -06:00
parent e8b6d29122
commit f7fa13be5b
Signed by untrusted user who does not match committer: Ganome
GPG Key ID: 944DE53336D81B83

View File

@ -102,11 +102,11 @@ static char *colors[][ColCount] = {
};
static const char *const autostart[] = {
"st", NULL,
// "st", NULL,
NULL /* terminate */
};
static const char *scratchpadcmd[] = {"s", "st", "-n", "spterm", NULL};
static const char *scratchpadcmd[] = {"s", "kitty", "--name", "spterm", NULL};
/* Tags
* 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] =
{
[DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" },
[DEFAULT_TAGS] = { "", "", "", "", "", "", "", "", "" },
[ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
[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 "SPLASH", .isfloating = 1)
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)
};
@ -228,22 +228,30 @@ static const Layout layouts[] = {
/* commands */
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[] = {
"dmenu_run",
"-m", dmenumon,
"-fn", dmenufont,
"-nb", normbgcolor,
"-nf", normfgcolor,
"-sb", selbgcolor,
"-sf", selfgcolor,
"rofi",
"-show",
"drun",
"--with-images",
NULL
};
static const char *termcmd[] = { "kitty", NULL };
static const Key keys[] = {
/* modifier key function argument */
{ 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_j, 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_j, 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} },
{ MODKEY|ShiftMask, XK_e, killclient, {0} },
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ MODKEY|ControlMask, XK_q, quit, {1} },
{ MODKEY|ShiftMask, XK_q, killclient, {0} },
{ MODKEY|ShiftMask, XK_e, quit, {0} },
{ MODKEY|ControlMask, XK_e, quit, {1} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },