From 37aee9ca3e77431cc067957aa35cef5cfb4f39c9 Mon Sep 17 00:00:00 2001 From: LM-LCL Date: Thu, 16 Jan 2025 21:39:59 +0100 Subject: Middle click copy selected area --- config.def.h | 2 ++ config.h | 2 ++ 2 files changed, 4 insertions(+) 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} }, -- cgit v1.2.3