From 84afc0bb35cbb86e17357f5a2f9e4d86c5cfb9ae Mon Sep 17 00:00:00 2001 From: golfyado Date: Tue, 12 Jul 2022 16:06:42 -0400 Subject: Added import(1) keybind --- config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.h b/config.h index 0123b19..f50797e 100644 --- a/config.h +++ b/config.h @@ -65,6 +65,7 @@ static const char *termcmd[] = { "urxvt", NULL }; static const char *scrotcmd[] = { "scrot", "/home/aldebaran/Pictures/screenshots/%Y-%m-%d_$wx$h.png" }; static const char *latamcmd[] = { "setxkbmap", "-layout", "latam" }; static const char *greengocmd[] = { "setxkbmap", "-layout", "us" }; +static const char *importcmd[] = { "import", "~/Pictures/screenshots/2022import-$(date +%F%R%S).jpg" }; /* from: https://wiki.gentoo.org/wiki/Dwm */ /*static const char *upvol[] = { "amixer", "set", "Master", "2+" }; @@ -82,6 +83,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_a, spawn, {.v = latamcmd } }, { MODKEY|ShiftMask, XK_j, spawn, {.v = downvol } }, { MODKEY|ShiftMask, XK_k, spawn, {.v = upvol } }, + { MODKEY|ShiftMask, XK_Print, spawn, {.v = importcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, -- cgit v1.2.3