dotfiles

Dotfiles for my OpenBSD environment.
git clone https://git.mtkn.jp/dotfiles
Log | Files | Refs

config.diff (4099B)


      1 --- config.def.h	Thu Nov 18 08:37:04 2021
      2 +++ config.h	Tue Jun 14 08:36:53 2022
      3 @@ -1,25 +1,25 @@
      4  /* See LICENSE file for copyright and license details. */
      5  
      6  /* appearance */
      7 -static const unsigned int borderpx  = 1;        /* border pixel of windows */
      8 +static const unsigned int borderpx  = 0;        /* border pixel of windows */
      9  static const unsigned int snap      = 32;       /* snap pixel */
     10  static const int showbar            = 1;        /* 0 means no bar */
     11  static const int topbar             = 1;        /* 0 means bottom bar */
     12 -static const char *fonts[]          = { "monospace:size=10" };
     13 -static const char dmenufont[]       = "monospace:size=10";
     14 +static const char *fonts[]          = { "DejaVu Sans Mono:size=7", "Noto Serif CJK JP:size=7", "Font Awesome 5 Free:size=7", "Noto Color Emoji:size=7"};
     15 +static const char dmenufont[]       = "monospace:size=8";
     16  static const char col_gray1[]       = "#222222";
     17  static const char col_gray2[]       = "#444444";
     18  static const char col_gray3[]       = "#bbbbbb";
     19  static const char col_gray4[]       = "#eeeeee";
     20 -static const char col_cyan[]        = "#005577";
     21 +static const char col_highlight[]   = "#324d45";
     22  static const char *colors[][3]      = {
     23  	/*               fg         bg         border   */
     24  	[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
     25 -	[SchemeSel]  = { col_gray4, col_cyan,  col_cyan  },
     26 +	[SchemeSel]  = { col_gray4, col_highlight,  col_highlight  },
     27  };
     28  
     29  /* tagging */
     30 -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
     31 +static const char *tags[] = { "1", "2", "3"};
     32  
     33  static const Rule rules[] = {
     34  	/* xprop(1):
     35 @@ -45,7 +45,7 @@
     36  };
     37  
     38  /* key definitions */
     39 -#define MODKEY Mod1Mask
     40 +#define MODKEY Mod4Mask
     41  #define TAGKEYS(KEY,TAG) \
     42  	{ MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
     43  	{ MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
     44 @@ -57,13 +57,21 @@
     45  
     46  /* commands */
     47  static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
     48 -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
     49 -static const char *termcmd[]  = { "st", NULL };
     50 +/*static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_highlight, "-sf", col_gray4, NULL };*/
     51 +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_highlight, "-sf", col_gray4, NULL };
     52 +static const char *termcmd[]  = { "$TERMINAL", NULL };
     53  
     54 +#include <X11/XF86keysym.h>
     55 +
     56  static Key keys[] = {
     57  	/* modifier                     key        function        argument */
     58 +	{ MODKEY|ShiftMask,             XK_b,      spawn,          SHCMD("$BROWSER") },
     59 +	{ MODKEY|ShiftMask,             XK_s,      spawn,          SHCMD("$SURF") },
     60 +	{ MODKEY,                       XK_n,      spawn,          SHCMD("jinput") },
     61  	{ MODKEY,                       XK_p,      spawn,          {.v = dmenucmd } },
     62 -	{ MODKEY|ShiftMask,             XK_Return, spawn,          {.v = termcmd } },
     63 +	{ MODKEY|ShiftMask,             XK_p,      spawn,          SHCMD("pass dmenu") },
     64 +	/*{ MODKEY|ShiftMask,             XK_Return, spawn,          {.v = termcmd } },*/
     65 +	{ MODKEY|ShiftMask,             XK_Return, spawn,          SHCMD("$TERMINAL") },
     66  	{ MODKEY,                       XK_b,      togglebar,      {0} },
     67  	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
     68  	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
     69 @@ -95,6 +103,10 @@
     70  	TAGKEYS(                        XK_8,                      7)
     71  	TAGKEYS(                        XK_9,                      8)
     72  	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
     73 +
     74 +
     75 +	{ 0, XF86XK_AudioRaiseVolume,	spawn,		SHCMD("mixer vol +3 >/dev/null; kill -75 $(pidof dwmblocks)") },
     76 +	{ 0, XF86XK_AudioLowerVolume,	spawn,		SHCMD("mixer vol -3 >/dev/null; kill -75 $(pidof dwmblocks)") },
     77  };
     78  
     79  /* button definitions */