From bf647ff2fdb11352ec0c6ccf04fa7bccfeb20e02 Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Fri, 10 Oct 2025 09:29:02 +0200 Subject: added a program launcher --- config.def.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 9157c0e..836d37d 100644 --- a/config.def.h +++ b/config.def.h @@ -36,7 +36,8 @@ static const char *colors[][3] = { }; /* tagging */ -static const char *tags[] = { "1", "2", "3"}; +static const char *tags[] = { "1", "2", "3" }; +static const char *defaulttagapps[] = { "librewolf", "tabbed -c -r 2 st -w '' -e /usr/bin/zsh", "zathura" }; static const Rule rules[] = { /* xprop(1): @@ -45,7 +46,7 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + { "Librewolf", NULL, NULL, 1 << 8, 0, -1 }, }; /* layout(s) */ @@ -79,15 +80,15 @@ 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_black, "-nf", col_white, "-sb", col_green, "-sf", col_white, NULL }; static const char *termcmd[] = { "tabbed", "-c", "-r", "2", "st", "-w", "''", "-e", "/usr/bin/zsh", NULL }; -static const char *browsercmd[] = { "librewolf" }; static const char *mansplaincmd[] = { "mansplain" }; +static const char *launchcmd[] = { "launch" }; // static const char *termcmd[] = { "st", NULL }; static const Key keys[] = { /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_u, spawn, {.v = browsercmd } }, + { MODKEY, XK_p, spawn, {.v = launchcmd } }, + { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_u, spawndefault, {0} }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, -- cgit v1.2.3