diff --git a/dwm/config.h b/dwm/config.h index b28ead7..a2d2c79 100644 --- a/dwm/config.h +++ b/dwm/config.h @@ -62,12 +62,14 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, static const char *termcmd[] = { "st", NULL }; static const char *scrot1[] = { "scrot", "'%+.png' -q 100 -z -e 'mv $f ~/screenshots/'", NULL }; // $(date).png, quality 100 (best), dont beep, move the file into ~/screenshots/ static const char *scrot2[] = { "scrot", "'%+.png' -q 100 -s -z -e 'mv $f ~/screenshots/'", NULL }; // $(date).png, quality 100 (best), select area for screenschot, dont beep, move the file into ~/screenshots/ +static const char *paster[] = { "paster", NULL }; // https://gist.github.com/ethack/110f7f46272447828352768e6cd1c4cb static Key keys[] = { /* modifier key function argument */ { 0, XK_Super_L, spawn, {.v = dmenucmd } }, //super opens dmenu { 0, XK_Print, spawn, {.v = scrot1 } }, //print screen takes screenshot of whole screen with scrot { MODKEY, XK_Print, spawn, {.v = scrot2 } }, //alt+print screen takes screenshot of area with scrot + { MODKEY|ControlMask|ShiftMask, XK_v, spawn, {.v = paster } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, diff --git a/dwm/drw.o b/dwm/drw.o index 52dbaf5..534fac5 100644 Binary files a/dwm/drw.o and b/dwm/drw.o differ diff --git a/dwm/dwm b/dwm/dwm index 67654ed..169bd8f 100755 Binary files a/dwm/dwm and b/dwm/dwm differ diff --git a/dwm/dwm.o b/dwm/dwm.o index a55c1ad..bbe3438 100644 Binary files a/dwm/dwm.o and b/dwm/dwm.o differ diff --git a/dwm/util.o b/dwm/util.o index e39c878..04ef62b 100644 Binary files a/dwm/util.o and b/dwm/util.o differ diff --git a/paster b/paster new file mode 100755 index 0000000..f3e71d5 --- /dev/null +++ b/paster @@ -0,0 +1,2 @@ +xclip -selection clipboard -out | tr \\n \\r | xdotool type --clearmodifiers --delay 25 --file - +xdotool keyup Control_L Control_R Shift_L Shift_R Meta_L Meta_R