Alternate keybind to launch rxvt in floating
This commit is contained in:
6
config.h
6
config.h
@@ -50,7 +50,9 @@ 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 },
|
||||
// make calculator floating
|
||||
{ "SpeedCrunch", NULL, NULL, 0, 1, -1 },
|
||||
{ "URxvt", NULL, "urxvt-f", 0, 1, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
@@ -81,6 +83,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};
|
||||
@@ -94,6 +97,7 @@ 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 } },
|
||||
|
||||
Reference in New Issue
Block a user