From d8896f0a9eecf593e8df6ae834f60a5b04e9de68 Mon Sep 17 00:00:00 2001 From: lhark Date: Tue, 21 Mar 2017 11:58:17 -0400 Subject: [PATCH] Add custom scripts --- config.def.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index 890b6e6..34fe97f 100644 --- a/config.def.h +++ b/config.def.h @@ -65,12 +65,14 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, static const char *termcmd[] = { "st", NULL }; static const char *backlightinccmd[] = { "xbacklight", "-inc", "5", NULL }; static const char *backlightdeccmd[] = { "xbacklight", "-dec", "5", NULL }; -static const char *volup[] = { "volcont", "--up", NULL }; -static const char *voldown[] = { "volcont", "--down", "5", NULL }; -static const char *voltog[] = { "volcont", "--toggle", "5", NULL }; +static const char *volup[] = { "/usr/local/bin/volcont", "--up", NULL }; +static const char *voldown[] = { "/usr/local/bin/volcont", "--down", "5", NULL }; +static const char *voltog[] = { "/usr/local/bin/volcont", "--toggle", "5", NULL }; static const char *slock[] = { "slock", NULL }; static const char *keepass[] = { "mono", "/usr/share/keepass/KeePass.exe", "--auto-type", NULL }; static const char *pass[] = { "/usr/local/bin/passautotype", "-t", NULL }; +static const char *touchtog[] = { "/usr/local/bin/touchtog", NULL }; /* touchpad toggle */ +static const char *clipqr[] = { "/usr/local/bin/clipqr", NULL }; /* clipboard to QR */ static Key keys[] = { /* modifier key function argument */ @@ -81,9 +83,11 @@ static Key keys[] = { { 0, 0x1008ff13,spawn, {.v = volup } }, { 0, 0x1008ff11,spawn, {.v = voldown } }, { 0, 0x1008ff12,spawn, {.v = voltog } }, + { 0, 0x1008ffa9,spawn, {.v = touchtog } }, { MODKEY, XK_l, spawn, {.v = slock } }, { MODKEY, XK_a, spawn, {.v = keepass } }, { MODKEY, XK_z, spawn, {.v = pass } }, + { MODKEY, XK_v, spawn, {.v = clipqr } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_Tab, focusstack, {.i = +1 } }, { MODKEY|ShiftMask, XK_Tab, focusstack, {.i = -1 } },