~armaan/dwm

a277cbdb2f98d2b695917018910deb1d2ad56f25 — Armaan Bhojwani 10 days ago b66e32e master
Update
1 files changed, 11 insertions(+), 19 deletions(-)

M config.h
M config.h => config.h +11 -19
@@ 8,11 8,11 @@ static const int topbar             = 1;        /* 0 means bottom bar */
static const char *fonts[]          = { "JetBrainsMono Medium NF:pixelsize=14:antialias=true:autohint=true" };
static const char white[]       = "#ffffff";
static const char black[]       = "#000000";
static const char mgray[]       = "#bbbbbb";
static const char mgray[]       = "#555555";
static const char *colors[][3]      = {
	/*               fg     bg     border   */
	[SchemeNorm] = { black, white, mgray },
	[SchemeSel]  = { white, black, black },
	[SchemeNorm] = { white, black, mgray },
	[SchemeSel]  = { black, white, white },
};

/* tagging */


@@ 49,17 49,17 @@ static const Layout layouts[] = {

/* helper for spawning shell and emacs commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
#define EMACS(cmd) { .v = (const char*[]){ "/bin/emacsclient", "-ce", cmd, NULL } }

/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", NULL };
static const char *termcmd[]  = { "st", "-e", "dvtm" };

static Key keys[] = {
	/* modifier         key        function        argument */
	{ MODKEY,           XK_p,      spawn,          {.v = dmenucmd } },
	{ MODKEY|ShiftMask, XK_p,      spawn,          SHCMD("passmenu") },
	{ MODKEY|ShiftMask, XK_Return, spawn,          EMACS("(term)") },
	{ MODKEY|ShiftMask, XK_Return, spawn,          {.v = termcmd} },
	{ MODKEY,           XK_b,      togglebar,      {0} },
	{ MODKEY,           XK_j,      focusstack,     {.i = +1 } },
	{ MODKEY,           XK_k,      focusstack,     {.i = -1 } },


@@ 89,17 89,9 @@ static Key keys[] = {
	{ MODKEY|ShiftMask, XK_5,      tag,            {.ui = ~0 } },
	{ MODKEY|ShiftMask, XK_q,      quit,           {0} },
	/***************************************************************/
	{ MODKEY|ControlMask, XK_Return, spawn, SHCMD("emacsclient -c") },
	{ MODKEY|ControlMask, XK_q,      spawn, EMACS("(progn (switch-to-buffer \"*scratch*\") (mu4e))") },
	{ MODKEY|ControlMask, XK_w,      spawn, EMACS("(acheam-irc)") },
	{ MODKEY|ControlMask, XK_e,      spawn, EMACS("(elfeed)") },
	{ MODKEY|ControlMask, XK_r,      spawn, EMACS("(acheam-calendar)") },
	{ MODKEY|ControlMask, XK_t,      spawn, EMACS("(progn (calc) (windmove-up) (delete-window))") },
	{ MODKEY|ControlMask, XK_u,      spawn, SHCMD("dweb uri") },
	{ MODKEY|ControlMask, XK_i,      spawn, SHCMD("dweb search") },
	{ MODKEY|ControlMask, XK_o,      spawn, SHCMD("dweb bookmark") },
	{ MODKEY|ControlMask, XK_p,      spawn, SHCMD("chorizo") },
	{ 0,                  XK_F7,     spawn, SHCMD("chorizo") },
	{ MODKEY|ControlMask, XK_i,      spawn, SHCMD("dweb uri") },
	{ MODKEY|ControlMask, XK_o,      spawn, SHCMD("dweb search") },
	{ MODKEY|ControlMask, XK_p,      spawn, SHCMD("chromium") },
	/***************************************************************/
	{ 0,           XF86XK_AudioLowerVolume,  spawn, SHCMD("amixer sset Master 5%-; pkill -RTMIN+10 dwmblocks") },
	{ 0,           XF86XK_AudioRaiseVolume,  spawn, SHCMD("amixer sset Master 5%+; pkill -RTMIN+10 dwmblocks") },


@@ 132,12 124,12 @@ static Button buttons[] = {
};

static const char *const autostart[] = {
	"xsetroot", "-solid", "#bbbbbb", NULL,
	"xbanish", NULL,
	"xsetroot", "-gray", NULL,
	"dwmblocks", NULL,
	"xmodmap", "/home/armaa/.config/xmodmap", NULL,
	"xcape", NULL,
	"redshift", "-l", "42.4:-71.3", "-t", "6500:2500", NULL,
	"emacs", "--daemon", NULL,
	"brownoutd", NULL,
	"syncthing", NULL,
	NULL /* terminate */
};