tconfig.h: update keybinds - dwm - [fork] customized build of dwm, the dynamic window manager
 (HTM) git clone git://src.adamsgaard.dk/dwm
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 083dd3ffbccaf744fd35574e22d3986182ee215e
 (DIR) parent a912389f8217b154da32f6c7715ad544cdb78c78
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Fri,  1 Jul 2022 09:28:55 +0200
       
       config.h: update keybinds
       
       Diffstat:
         M config.h                            |      16 +++++++++++-----
       
       1 file changed, 11 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/config.h b/config.h
       t@@ -75,9 +75,9 @@ static const Layout layouts[] = {
        static char dmenumon[2] = "0";
        
        #define HOME "/home/ad"
       -#define TERMINAL "x-terminal-emulator"
       -#define BROWSER "surf-open.sh"
       -#define MPD_REMOTE "mini"
       +#define TERMINAL HOME "/bin/x-terminal-emulator"
       +#define BROWSER "firefox"
       +#define MPD_REMOTE "192.168.0.12"
        
        #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
        #define TERMCMD(...)   {TERMINAL, "-e", __VA_ARGS__, NULL}
       t@@ -89,6 +89,7 @@ static char dmenumon[2] = "0";
        static const char *termcmd[]           = TERMCMD("ksh", "-l");
        static const char *termplexcmd[]       = TERMCMD("tmux");
        
       +static const char *acmecmd[]           = {"a", NULL};
        static const char *dmenucmd[]          = {"dmenu_run", NULL};
        static const char *searchcmd[]         = {"search", NULL};
        static const char *articlesearchcmd[]  = {"articlesearch", NULL};
       t@@ -105,6 +106,8 @@ static const char *screenrecordcmd[]   = {"screenrecord", NULL};
        static const char *castcmd[]           = {"adcast", NULL};
        static const char *plumbcmd[]          = {"clipplumb", NULL};
        static const char *plumb2cmd[]         = {"clipplumb", "-c", NULL};
       +static const char *plumbremotecmd[]    = {"clipplumb", "-r", NULL};
       +static const char *plumb2remotecmd[]   = {"clipplumb", "-c", "-r", NULL};
        static const char *ytdlaudiocmd[]      = {"youtube-dl-music", "-t", "-a", "-m", "-q", NULL};
        static const char *showclipcmd[]       = {"showclip", NULL};
        static const char *xlockcmd[]          = {"xlock", NULL};
       t@@ -119,7 +122,7 @@ static const char *contactscmd[]       = {"contacts", NULL};
        
        static const char *browsercmd[]        = {BROWSER, HOME "/doc/bookmark.html", NULL};
        static const char *journalcmd[]        = TERMCMD("tmux-journal.sh");
       -static const char *topcmd[]            = TERMCMD("top", "-C");
       +static const char *topcmd[]            = TERMCMD("htop", "-C");
        static const char *mailcmd[]           = DUPLEXCMD("mutt");
        /* static const char *filecmd[]           = TERMCMD("sh", "-c", "cd ~/tmp; ls -p; $SHELL -l"); */
        static const char *newscmd[]           = DUPLEXCMD("sfeed_curses $HOME/.sfeed/feeds/*");
       t@@ -162,7 +165,7 @@ static const char *mouseleftclickcmd[] = {"xdotool", "click", "1", NULL};
        static const char *mouserightclickcmd[]= {"xdotool", "click", "3", NULL};
        
        static const char *showkeyscmd[]       = {"screenkey-toggle", NULL};
       -static const char *goatcmd[]  = { "sh", "-c", "mpv \"$(hurl gopher://bitreich.org/0/memecache/index.meme | grep goat | grep -E '\.(mp4|mkv|webm|avi) ' | cut -f2 -d' ' | sort -R | he ad -n 1)\"", NULL };
       +static const char *goatcmd[]  = { "sh", "-c", "mpv \"$(hurl gopher://bitreich.org/0/memecache/index.meme | grep goat | grep -E '\\.(mp4|mkv|webm|avi) ' | cut -f2 -d' ' | sort -R | he ad -n 1)\"", NULL };
        
        /* see key names in /usr/include/X11/keysymdef.h */
        static Key keys[] = {
       t@@ -207,6 +210,7 @@ static Key keys[] = {
                { MODKEY|ShiftMask,             XK_F7,     spawn,          {.v = displayintcmd } },
                { MODKEY,                       XK_F9,     spawn,          {.v = showkeyscmd } },
        
       +        { MODKEY,                       XK_a,      spawn,          {.v = acmecmd } },
                { MODKEY|ShiftMask,             XK_a,      spawn,          {.v = articlesearchcmd } },
                { MODKEY|ControlMask|ShiftMask, XK_a,      spawn,          {.v = mixercmd } },
                { MODKEY|MODALTKEY,             XK_b,      togglebar,      {0} },
       t@@ -254,6 +258,8 @@ static Key keys[] = {
                { MODKEY|ShiftMask,             XK_t,      setlayout,      {.v = &layouts[0]} },
                { MODKEY,                       XK_u,      spawn,          {.v = plumbcmd } },
                { MODKEY|ShiftMask,             XK_u,      spawn,          {.v = plumb2cmd } },
       +        { MODKEY|ControlMask,           XK_u,      spawn,          {.v = plumbremotecmd } },
       +        { MODKEY|ControlMask|ShiftMask, XK_u,      spawn,          {.v = plumb2remotecmd } },
                { MODKEY,                       XK_v,      spawn,          {.v = videocmd } },
                { MODKEY,                       XK_w,      spawn,          {.v = browsercmd } },
                { MODKEY|ShiftMask,             XK_w,      spawn,          {.v = torbrowsercmd } },