dotfiles

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

config.diff (3050B)


      1 --- config.def.h	2021-08-12 09:55:15.980353000 +0900
      2 +++ config.h	2021-08-10 11:04:40.573740000 +0900
      3 @@ -119,7 +119,8 @@
      4  	{ "://suckless\\.org/", "suckless.org.crt" },
      5  };
      6  
      7 -#define MODKEY GDK_CONTROL_MASK
      8 +/*#define MODKEY GDK_CONTROL_MASK*/
      9 +#define MODKEY GDK_MOD1_MASK
     10  
     11  /* hotkeys */
     12  /*
     13 @@ -129,25 +130,27 @@
     14  static Key keys[] = {
     15  	/* modifier              keyval          function    arg */
     16  	{ MODKEY,                GDK_KEY_g,      spawn,      SETPROP("_SURF_URI", "_SURF_GO", PROMPT_GO) },
     17 -	{ MODKEY,                GDK_KEY_f,      spawn,      SETPROP("_SURF_FIND", "_SURF_FIND", PROMPT_FIND) },
     18  	{ MODKEY,                GDK_KEY_slash,  spawn,      SETPROP("_SURF_FIND", "_SURF_FIND", PROMPT_FIND) },
     19  
     20 +	{ MODKEY,                GDK_KEY_w,      playexternal, { 0 } },
     21 +
     22  	{ 0,                     GDK_KEY_Escape, stop,       { 0 } },
     23 -	{ MODKEY,                GDK_KEY_c,      stop,       { 0 } },
     24  
     25  	{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_r,      reload,     { .i = 1 } },
     26  	{ MODKEY,                GDK_KEY_r,      reload,     { .i = 0 } },
     27  
     28 -	{ MODKEY,                GDK_KEY_l,      navigate,   { .i = +1 } },
     29 -	{ MODKEY,                GDK_KEY_h,      navigate,   { .i = -1 } },
     30 +	{ GDK_SHIFT_MASK,        GDK_KEY_l,      navigate,   { .i = +1 } },
     31 +	{ GDK_SHIFT_MASK,        GDK_KEY_h,      navigate,   { .i = -1 } },
     32  
     33  	/* vertical and horizontal scrolling, in viewport percentage */
     34 -	{ MODKEY,                GDK_KEY_j,      scrollv,    { .i = +10 } },
     35 -	{ MODKEY,                GDK_KEY_k,      scrollv,    { .i = -10 } },
     36 -	{ MODKEY,                GDK_KEY_space,  scrollv,    { .i = +50 } },
     37 -	{ MODKEY,                GDK_KEY_b,      scrollv,    { .i = -50 } },
     38 -	{ MODKEY,                GDK_KEY_i,      scrollh,    { .i = +10 } },
     39 -	{ MODKEY,                GDK_KEY_u,      scrollh,    { .i = -10 } },
     40 +	{ MODKEY,                GDK_KEY_j,      scrollv,    { .i = +5 } },
     41 +	{ MODKEY,                GDK_KEY_e,      scrollv,    { .i = +5 } },
     42 +	{ MODKEY,                GDK_KEY_k,      scrollv,    { .i = -5 } },
     43 +	{ MODKEY,                GDK_KEY_y,      scrollv,    { .i = -5 } },
     44 +	{ MODKEY,                GDK_KEY_d,      scrollv,    { .i = +50 } },
     45 +	{ MODKEY,                GDK_KEY_u,      scrollv,    { .i = -50 } },
     46 +	{ MODKEY,                GDK_KEY_l,      scrollh,    { .i = +5 } },
     47 +	{ MODKEY,                GDK_KEY_h,      scrollh,    { .i = -5 } },
     48  
     49  
     50  	{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_j,      zoom,       { .i = -1 } },
     51 @@ -156,8 +159,8 @@
     52  	{ MODKEY,                GDK_KEY_minus,  zoom,       { .i = -1 } },
     53  	{ MODKEY,                GDK_KEY_plus,   zoom,       { .i = +1 } },
     54  
     55 -	{ MODKEY,                GDK_KEY_p,      clipboard,  { .i = 1 } },
     56 -	{ MODKEY,                GDK_KEY_y,      clipboard,  { .i = 0 } },
     57 +	{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_p,      clipboard,  { .i = 1 } },
     58 +	{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_y,      clipboard,  { .i = 0 } },
     59  
     60  	{ MODKEY,                GDK_KEY_n,      find,       { .i = +1 } },
     61  	{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_n,      find,       { .i = -1 } },