From 1b0fb061e7d956e1f5a97f08b961ce75d9e78dc7 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sun, 24 Apr 2022 09:08:54 +0200 Subject: [PATCH] Add scrren shot controller --- config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.h b/config.h index ed8a5fd..edc6e5b 100644 --- a/config.h +++ b/config.h @@ -3,6 +3,7 @@ /* def */ #define WEBBROWSER "google-chrome-stable" #define TERMINAL "alacritty" +#define SCREENSHOT "spectacle" /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int gappx = 3; /* gaps size between windows */ @@ -150,6 +151,8 @@ static Key keys[] = { { 0, XF86XK_AudioPrev, spawn, SHCMD("playerctl previous") }, // Mute and unmute mic { 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") }, + // Take a screenshot + { 0, XK_Print, spawn, SHCMD(SCREENSHOT) }, }; /* button definitions */