This commit is contained in:
thad-w541
2025-10-28 22:20:51 -05:00
parent 6dd5520293
commit 7e7466ea31

View File

@@ -60,6 +60,8 @@ static const Layout layouts[] = {
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
static const char *txtcmd[] = { "obsidian", NULL };
static const char *idecmd[] = { "subl", NULL };
static const char *brightupcmd[] = { "/home/thad/brightness.sh", "+4", NULL};
static const char *brightdncmd[] = { "/home/thad/brightness.sh", "-4", NULL}; //{ "~/brightness.sh", "-2"};
// something with /sys/class/backlight/intel_backlight/brightness and max_brightness
@@ -67,6 +69,8 @@ static const char *brightdncmd[] = { "/home/thad/brightness.sh", "-4", NULL}; //
static const Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_r, spawn, {.v = idecmd } },
{ MODKEY|ShiftMask, XK_t, spawn, {.v = txtcmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
@@ -101,6 +105,7 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ 0, 0x1008FF02, spawn, {.v = brightupcmd } }, // see XF86keysym.h
{ 0, 0x1008FF03, spawn, {.v = brightdncmd} },
{ 0, 0x1008FF4A, spawn, {.v = dmenucmd}},
};
/* button definitions */