From d0a67ecb6913ef895bcfee52b4039630c5d1770b Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Fri, 6 Nov 2020 00:43:58 +0100 Subject: [PATCH] Replace shcmd with exec and add included ttv script, use xdg-open with homepage --- config.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/config.h b/config.h index 396a853..be1fefe 100644 --- a/config.h +++ b/config.h @@ -67,7 +67,11 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL }; static const char *termcmd[] = { "st", NULL }; static const char *lock[] = { "slock", NULL}; -static const char *browser[] = { "qutebrowser", NULL }; +static const char *sfeed[] = { "sfeed-dmenu", NULL }; +static const char *bookmarks[]= { "bookmarks-dmenu ~/Bookmarks", NULL }; +static const char *passman[] = { "passman-dmenu", NULL }; +static const char *ttvlist[] = { "twitch-list", NULL }; +static const char *browser[] = { "xdg-open", "https://search.snopyta.org", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -88,11 +92,10 @@ static const Key keys[] = { { MODKEY, XK_f, spawn, STCMD("nnn") }, /* dmenu scripts */ - { MODKEY, XK_r, spawn, SHCMD("sfeed-dmenu") }, - { MODKEY, XK_x, spawn, SHCMD("bookmarks-dmenu ~/Bookmarks") }, - { MODKEY|ShiftMask, XK_n, spawn, SHCMD("ansiblequickdocs") }, - { MODKEY, XK_y, spawn, SHCMD("passman-dmenu") }, - { MODKEY, XK_t, spawn, SHCMD("out=$(< ~/.cache/twitch dmenu -l 20); out=\"${out%% | *}\"; [ -z \"$out\" ] || mpv --profile=v \"https://twitch.tv/$out\"") }, + { MODKEY, XK_r, spawn, {.v = sfeed } }, + { MODKEY, XK_x, spawn, {.v = bookmarks } }, + { MODKEY, XK_y, spawn, {.v = passman } }, + { MODKEY, XK_t, spawn, {.v = ttvlist } }, /* mpv controls */ { 0, XF86XK_AudioPlay, spawn, MPVSOCK("keypress space") },