From df91a2ca8c332b8dfcd9d90112fccf82b5383c48 Mon Sep 17 00:00:00 2001 From: Ivan Polyakov Date: Sat, 29 Jun 2024 21:19:31 +0000 Subject: [PATCH] add screenshot command, rename brightness command --- config.def.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/config.def.h b/config.def.h index beee325..ebe7f3a 100644 --- a/config.def.h +++ b/config.def.h @@ -95,18 +95,21 @@ static const char *togglevolcmd[] = static const char *togglemiccmd[] = { "/usr/bin/amixer", "set", "Capture", "toggle", NULL }; /* brightness up */ -static const char *brightness_up[] = { "xbacklight", "-inc", "10", NULL }; +static const char *brightness_upcmd[] = { "xbacklight", "-inc", "10", NULL }; /* brightness down */ -static const char *brightness_down[] = { "xbacklight", "-dec", "10", NULL }; +static const char *brightness_downcmd[] = { "xbacklight", "-dec", "10", NULL }; +/* screenshot */ +static const char *screenshotcmd[] = { "flameshot", "gui", NULL }; static const Key keys[] = { /* modifier key function argument */ - { 0, XF86XK_AudioRaiseVolume, spawn, { .v = upvolcmd } }, - { 0, XF86XK_AudioLowerVolume, spawn, { .v = downvolcmd } }, - { 0, XF86XK_AudioMute, spawn, { .v = togglevolcmd } }, - { 0, XF86XK_AudioMicMute, spawn, { .v = togglemiccmd } }, - { 0, XF86XK_MonBrightnessUp, spawn, { .v = brightness_up } }, - { 0, XF86XK_MonBrightnessDown, spawn, { .v = brightness_down } }, + { 0, XF86XK_AudioRaiseVolume, spawn, { .v = upvolcmd } }, + { 0, XF86XK_AudioLowerVolume, spawn, { .v = downvolcmd } }, + { 0, XF86XK_AudioMute, spawn, { .v = togglevolcmd } }, + { 0, XF86XK_AudioMicMute, spawn, { .v = togglemiccmd } }, + { 0, XF86XK_MonBrightnessUp, spawn, { .v = brightness_upcmd } }, + { 0, XF86XK_MonBrightnessDown, spawn, { .v = brightness_downcmd } }, + { 0, XK_Print, spawn, { .v = screenshotcmd } }, { MODKEY, XK_p, spawn, {.v = roficmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} },