From 5f622d09871c27a5490e0cde183be4ca217f019b Mon Sep 17 00:00:00 2001 From: jon Date: Thu, 3 Jun 2021 15:08:13 -0500 Subject: [PATCH] Added keybind (meta+ctrl+return) for urxvt to launch in floating mode separate from standard bind. --- config.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index f86e1b9..63f6e80 100644 --- a/config.h +++ b/config.h @@ -46,7 +46,8 @@ static const Rule rules[] = { /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, 1, -1 }, { "firefox", NULL, NULL, 2, 0, -1 }, - { "URxvt", "cal", NULL, 0, 1, -1 }, + { "URxvt", "cal", NULL, 0, 1, -1 }, + { "urxvt-f", NULL, NULL, 0, 1, -1 }, }; /* layout(s) */ @@ -76,6 +77,7 @@ 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_norm_bg, "-nf", col_norm_fg, "-sb", col_sel_bg, "-sf", col_sel_fg, NULL }; static const char *termcmd[] = { "urxvt256c", NULL }; +static const char *floattermcmd[] = { "urxvt256c", "-name", "urxvt-f", NULL }; static const char *lockcmd[] = { "slock", NULL }; static const char *prtscrcmd[] = { "flameshot", "gui", NULL}; static const char *vol_up[] = { "volume_up.sh", NULL}; @@ -85,9 +87,10 @@ static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ControlMask, XK_Return, spawn, {.v = floattermcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, - { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, { MODKEY, XK_d, incnmaster, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} },