about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAcid Bong <acid-bong@cock.lt>2022-12-04 17:40:18 +0200
committerAcid Bong <acid-bong@cock.lt>2022-12-04 17:40:18 +0200
commita13aa9d3e24f67d4c505c9b4c2c20a3dcbe293b9 (patch)
treef45f9c7835e059510a551fe3d26691426ed0337c
parentd241128e41d4d2fdb37c396d69add2f12bb579e9 (diff)
downloaddwm-a13aa9d3e24f67d4c505c9b4c2c20a3dcbe293b9.tar.gz
keys: replaced scrotre with custom script
+ additional bindings for capturing active window
-rw-r--r--config.def.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index ec504de..cf48f40 100644
--- a/config.def.h
+++ b/config.def.h
@@ -128,10 +128,12 @@ static const Key keys[] = {
 	{ 0,		XF86XK_MonBrightnessUp,		spawn,	SHCMD("light -A 5; kill -36 $(pidof dwmblocks)") },
 	{ 0,		XF86XK_MonBrightnessDown,	spawn,	SHCMD("light -U 5; kill -36 $(pidof dwmblocks)") },
 		/* screenshots with scrotre */
-	{ 0,				XK_Print,	spawn,	SHCMD("scrotre -C") },
-	{ ShiftMask,			XK_Print,	spawn,	SHCMD("scrotre '$HOME/Изображения/Скриншоты/%Y-%m-%d-%H%M%S_$wx$h_scrotre.png'") },
-	{ ControlMask,			XK_Print,	spawn,	SHCMD("scrotre -sC") },
-	{ ControlMask|ShiftMask,	XK_Print,	spawn,	SHCMD("scrotre -s '$HOME/Изображения/Скриншоты/%Y-%m-%d-%H%M%S_$wx$h_scrotre.png'") },
+	{ 0,				XK_Print,	spawn,	SHCMD("sqrt -c")  },
+	{ ShiftMask,			XK_Print,	spawn,	SHCMD("sqrt")     },
+	{ ControlMask,			XK_Print,	spawn,	SHCMD("sqrt -sc") },
+	{ ControlMask|ShiftMask,	XK_Print,	spawn,	SHCMD("sqrt -s")  },
+	{ Mod1Mask,			XK_Print,	spawn,	SHCMD("sqrt -ac") },
+	{ Mod1Mask|ShiftMask,		XK_Print,	spawn,	SHCMD("sqrt -a")  },
 		/* MPRIS */
 	{ 0,			XF86XK_AudioPlay,	spawn,	SHCMD("playerctl play-pause") },
 	{ 0,			XF86XK_AudioStop,	spawn,	SHCMD("playerctl stop") },