Replace shcmd with exec and add included ttv script, use xdg-open with homepage

This commit is contained in:
Alex D. 2020-11-06 00:43:58 +01:00
parent 1d594af512
commit d0a67ecb69
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 9 additions and 6 deletions

View File

@ -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") },