Compare commits

..

2 Commits

Author SHA256 Message Date
ganome
98a7c8a544
fixed bar icons and some other stuff 2025-03-15 22:47:53 -06:00
ganome
f7fa13be5b
Fixed some keybinds and switched dmenu for rofi 2025-03-15 22:27:02 -06:00

View File

@ -102,11 +102,14 @@ static char *colors[][ColCount] = {
}; };
static const char *const autostart[] = { static const char *const autostart[] = {
"st", NULL, // "st", NULL,
"arrpc", NULL,
"swaync", NULL,
"xrdb", "/home/ganome/.Xresources", 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 +140,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 +175,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 << 2)
RULE(.instance = "spterm", .scratchkey = 's', .isfloating = 1) RULE(.instance = "spterm", .scratchkey = 's', .isfloating = 1)
}; };
@ -211,10 +214,10 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win
static const Layout layouts[] = { static const Layout layouts[] = {
/* symbol arrange function */ /* symbol arrange function */
{ "[\\]", dwindle },
{ "[]=", tile }, /* first entry is default */ { "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */ { "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle }, { "[M]", monocle },
{ "[\\]", dwindle },
{ "HHH", grid }, { "HHH", grid },
}; };
@ -228,22 +231,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 +267,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]} },