X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=config.h;h=abcf147d99a1f8502aa0bfdd9650372a517d3853;hb=b66e32e0ef47259877cba84ba571e9796d70aa03;hp=f386a011d2036b3d89798393dd2d76bf33975349;hpb=ac2a8a9772598519a4f72d5ad53121f42d8f8138;p=dwm.git diff --git a/config.h b/config.h index f386a01..abcf147 100644 --- a/config.h +++ b/config.h @@ -1,24 +1,22 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ 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 col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const char col_gray3[] = "#bbbbbb"; -static const char col_gray4[] = "#eeeeee"; -static const char col_cyan[] = "#005577"; +static const char white[] = "#ffffff"; +static const char black[] = "#000000"; +static const char mgray[] = "#bbbbbb"; static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + /* fg bg border */ + [SchemeNorm] = { black, white, mgray }, + [SchemeSel] = { white, black, black }, }; /* tagging */ -static const char *tags[] = { "1", "2", "3", "4", "5" }; +static const char *tags[] = { "1", "2", "3", "4" }; static const Rule rules[] = { /* xprop(1): @@ -26,10 +24,7 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, - { "St", NULL, NULL, 0, 0, -1 }, - { NULL, NULL, "Event Tester", 0, 0, -1 }, /* xev */ + { "St", NULL, "pinentry", 0, 1, -1 }, }; /* layout(s) */ @@ -59,13 +54,12 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", NULL }; -static const char *termcmd[] = { "tmuxt" }; 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, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_Return, spawn, EMACS("(term)") }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -83,8 +77,6 @@ static Key keys[] = { { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, @@ -93,11 +85,8 @@ static Key keys[] = { TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) TAGKEYS( XK_4, 3) - TAGKEYS( XK_5, 4) - TAGKEYS( XK_6, 5) - TAGKEYS( XK_7, 6) - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) + { MODKEY, XK_5, view, {.ui = ~0 } }, + { MODKEY|ShiftMask, XK_5, tag, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_q, quit, {0} }, /***************************************************************/ { MODKEY|ControlMask, XK_Return, spawn, SHCMD("emacsclient -c") }, @@ -106,8 +95,11 @@ static Key keys[] = { { 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_o, spawn, SHCMD("bookmarks") }, + { 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") }, /***************************************************************/ { 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") }, @@ -130,7 +122,6 @@ static Button buttons[] = { { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, { ClkClientWin, MODKEY, Button1, movemouse, {0} }, { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, @@ -140,3 +131,13 @@ static Button buttons[] = { { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; +static const char *const autostart[] = { + "xsetroot", "-solid", "#bbbbbb", NULL, + "dwmblocks", NULL, + "xmodmap", "/home/armaa/.config/xmodmap", NULL, + "xcape", NULL, + "redshift", "-l", "42.4:-71.3", "-t", "6500:2500", NULL, + "emacs", "--daemon", NULL, + "syncthing", NULL, + NULL /* terminate */ +};