Added keybind (meta+ctrl+return) for urxvt to launch in floating mode separate from standard bind.
This commit is contained in:
3
config.h
3
config.h
@@ -47,6 +47,7 @@ static const Rule rules[] = {
|
|||||||
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
||||||
{ "firefox", NULL, NULL, 2, 0, -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) */
|
/* layout(s) */
|
||||||
@@ -76,6 +77,7 @@ static const Layout layouts[] = {
|
|||||||
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", col_norm_bg, "-nf", col_norm_fg, "-sb", col_sel_bg, "-sf", col_sel_fg, NULL };
|
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 *termcmd[] = { "urxvt256c", NULL };
|
||||||
|
static const char *floattermcmd[] = { "urxvt256c", "-name", "urxvt-f", NULL };
|
||||||
static const char *lockcmd[] = { "slock", NULL };
|
static const char *lockcmd[] = { "slock", NULL };
|
||||||
static const char *prtscrcmd[] = { "flameshot", "gui", NULL};
|
static const char *prtscrcmd[] = { "flameshot", "gui", NULL};
|
||||||
static const char *vol_up[] = { "volume_up.sh", NULL};
|
static const char *vol_up[] = { "volume_up.sh", NULL};
|
||||||
@@ -85,6 +87,7 @@ static 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|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
|
{ MODKEY|ControlMask, XK_Return, spawn, {.v = floattermcmd } },
|
||||||
{ 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 } },
|
||||||
|
|||||||
Reference in New Issue
Block a user