From f5bbd9b4c3b049bb6a74d906e144c1a2e8284337 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Tue, 16 Feb 2021 10:26:49 +0100 Subject: riodraw: upgrading patch to include rio-spawning of windows --- config.def.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index ecd9036..4f914eb 100644 --- a/config.def.h +++ b/config.def.h @@ -53,7 +53,12 @@ static int floatposgrid_x = 5; /* float grid columns */ static int floatposgrid_y = 5; /* float grid rows */ #endif // FLOATPOS_PATCH #if RIODRAW_PATCH -static const char slopstyle[] = "-t 0 -c 0.92,0.85,0.69,0.3"; /* do NOT define -f (format) here */ +static const char slopspawnstyle[] = "-t 0 -c 0.92,0.85,0.69,0.3 -o"; /* do NOT define -f (format) here */ +static const char slopresizestyle[] = "-t 0 -c 0.92,0.85,0.69,0.3"; /* do NOT define -f (format) here */ +static const int riodraw_borders = 0; /* 0 or 1, indicates whether the area drawn using slop includes the window borders */ +#if SWALLOW_PATCH +static const int riodraw_matchpid = 1; /* 0 or 1, indicates whether to match the PID of the client that was spawned with riospawn */ +#endif // SWALLOW_PATCH #endif // RIODRAW_PATCH #if BAR_STATUSPADDING_PATCH static const int horizpadbar = 2; /* horizontal padding for statusbar */ @@ -757,6 +762,11 @@ static Key keys[] = { #endif // KEYMODES_PATCH { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + #if RIODRAW_PATCH + { MODKEY|ControlMask, XK_p, riospawnsync, {.v = dmenucmd } }, + { MODKEY|ControlMask, XK_Return, riospawn, {.v = termcmd } }, + { MODKEY, XK_s, rioresize, {0} }, + #endif // RIODRAW_PATCH { MODKEY, XK_b, togglebar, {0} }, #if FOCUSMASTER_PATCH { MODKEY|ControlMask, XK_space, focusmaster, {0} }, @@ -777,9 +787,6 @@ static Key keys[] = { #if SWAPFOCUS_PATCH && PERTAG_PATCH { MODKEY, XK_s, swapfocus, {.i = -1 } }, #endif // SWAPFOCUS_PATCH - #if RIODRAW_PATCH - { MODKEY|ControlMask, XK_s, riodraw, {0} }, - #endif // RIODRAW_PATCH #if SWITCHCOL_PATCH { MODKEY, XK_v, switchcol, {0} }, #endif // SWITCHCOL_PATCH -- cgit v1.2.3