Added screenshot keybind

This commit is contained in:
Pijus Kamandulis 2021-04-09 01:27:02 +03:00
parent 926d23911c
commit 93d5de8248

View File

@ -69,11 +69,17 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont,
static const char *termcmd[] = { "xfce4-terminal", NULL };
static const char *slockcmd[] = { "slock", NULL };
/* shell commands */
static const char maimselcmd[] = "maim -s ~/Pictures/screen-sel-$(date '+%y%m%d-%H%M-%S').png";
static const char maimfullcmd[] = "maim ~/Pictures/screen-full-$(date '+%y%m%d-%H%M-%S').png";
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ SUPERKEY, XK_l, spawn, {.v = slockcmd } },
{ SUPERKEY|ShiftMask, XK_s, spawn, SHCMD(maimselcmd) },
{ 0, XK_Print, spawn, SHCMD(maimfullcmd) },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },