t* dwm + patches URI git clone git://git.codevoid.de/dwm-sdk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit e8ee16a6f26f0c18a7bb1e095ae29e39f65351c0 DIR parent 9737fb78c8a2c027b908199ab347cac0bdbd609b URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de> Date: Tue, 12 Jun 2018 21:47:04 +0200 Adding browserpaste cmd Diffstat: M config.h | 2 ++ A scripts/browserpaste | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/config.h b/config.h t@@ -79,6 +79,7 @@ static const char scratchpadname[] = "scratchpad"; static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; static const char *browsercmd[] = { ".dwm/browser", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *passmenucmd[] = { ".dwm/passmenu", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *browserpaste[] = { ".dwm/browserpaste", NULL }; static const char *volumeupcmd[] = { ".dwm/mixer", "+2", NULL }; static const char *volumedowncmd[] = { ".dwm/mixer", "-2", NULL }; t@@ -96,6 +97,7 @@ static Key keys[] = { { MODKEY, XK_minus, togglescratch, {.v = scratchpadcmd } }, { 0, 0x1008ff13,spawn, {.v = volumeupcmd } }, { 0, 0x1008ff11,spawn, {.v = volumedowncmd } }, + { MODKEY, XK_p, spawn, {.v = browserpaste } }, // show/hide statusbar { MODKEY, XK_b, togglebar, {0} }, DIR diff --git a/scripts/browserpaste b/scripts/browserpaste t@@ -0,0 +1,2 @@ +#!/bin/sh +surf $(xclip -o)