mirror of
https://github.com/pikami/dwm.git
synced 2024-12-05 01:55:43 +00:00
Added screenshot keybind
This commit is contained in:
parent
926d23911c
commit
93d5de8248
6
config.h
6
config.h
@ -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 } },
|
||||
|
Loading…
Reference in New Issue
Block a user