summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLM-LCL <hello@exaltedelite.club>2025-01-16 21:39:59 +0100
committerLM-LCL <hello@exaltedelite.club>2025-01-16 21:39:59 +0100
commit37aee9ca3e77431cc067957aa35cef5cfb4f39c9 (patch)
tree2e521c67289ef6feb6f7ecb0a19cf8825531c23e
parentf021483b6340323a88833e181f8e76c8bebbd9f7 (diff)
Middle click copy selected area
-rw-r--r--config.def.h2
-rw-r--r--config.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 5603883..efdeb74 100644
--- a/config.def.h
+++ b/config.def.h
@@ -81,6 +81,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_white, "-sb", col_gray2, "-sf", col_white, NULL };
static const char *termcmd[] = { "st", NULL };
static const char *dmenutab[] = { "alt-tab" };
+static const char *prtsccmd[] = { "prtsc" };
#include "movestack.c"
static const Key keys[] = {
@@ -128,6 +129,7 @@ static const Key keys[] = {
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static const Button buttons[] = {
/* click event mask button function argument */
+ { ClkRootWin, 0, Button2, spawn, {.v = prtsccmd} },
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
diff --git a/config.h b/config.h
index 5603883..efdeb74 100644
--- a/config.h
+++ b/config.h
@@ -81,6 +81,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_white, "-sb", col_gray2, "-sf", col_white, NULL };
static const char *termcmd[] = { "st", NULL };
static const char *dmenutab[] = { "alt-tab" };
+static const char *prtsccmd[] = { "prtsc" };
#include "movestack.c"
static const Key keys[] = {
@@ -128,6 +129,7 @@ static const Key keys[] = {
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static const Button buttons[] = {
/* click event mask button function argument */
+ { ClkRootWin, 0, Button2, spawn, {.v = prtsccmd} },
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },