sistema_progs

Programas para customizar o meu entorno de traballo nos meus equipos persoais
Log | Files | Refs

config.h.orig (8232B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include <gcolors.h>
      3 
      4 /* appearance */
      5 static const unsigned int borderpx  = 3;        /* border pixel of windows */
      6 static const unsigned int gappx     = 12;        /* gaps between windows */
      7 static const unsigned int snap      = 32;       /* snap pixel */
      8 static const unsigned int systraypinning = 0;   /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
      9 static const unsigned int systrayonleft = 0;    /* 0: systray in the right corner, >0: pin systray to monitor X*/
     10 static const unsigned int systrayspacing = 2;   /* systray spacing */
     11 static const int systraypinningfailfirst = 1;   /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
     12 static const int showsystray = 1;
     13 static const int showbar            = 1;        /* 0 means no bar */
     14 static const int topbar             = 1;        /* 0 means bottom bar */
     15 static const char *fonts[]          = { "mononoki Nerd Font Mono:size=10" }; // Previamente en monospace:size=10
     16 static const char dmenufont[]       = "mononoki Nerd Font Mono:size=10";
     17 static const char col_gray1[]       = "#222222";//COL_BG_0; //"#222222";
     18 static const char col_gray2[]       = "#444444";//COL_BG_1; //"#444444";
     19 static const char col_gray3[]       = "#bbbbbb";
     20 static const char col_gray4[]       = "#eeeeee";
     21 static const char col_fosc[]        = COL_FOSC; //"#590c0a";
     22 static const char col_clar[]        = COL_CLAR; //"#005577"; col_cyan
     23 //static const char col_granate[]     = "#590c0a";
     24 static const char col_black[]       = COL_NEGRE;
     25 static const char col_red[]         = COL_VERMELL;
     26 static const char col_yellow[]      = COL_GROC;
     27 static const char col_white[]       = COL_BLANC;
     28 static const char col_granate[]     = "#663338";
     29 
     30 static const char *colors[][3]      = {
     31 	/*               fg         bg         border   */
     32 	[SchemeStatus] = { col_gray3, col_gray1, col_gray2 },
     33 	[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
     34 	[SchemeSel]  = { col_gray4, col_granate,  col_granate  },
     35 	[SchemeTagsSel]  = { col_clar, col_gray2,  "#000000"  }, // Tagbar selected
     36 	[SchemeTagsNorm]  = { col_gray3, col_gray1,  "#000000"  }, // Tagbar selected
     37 	[SchemeInfoSel]  = { col_gray4, col_fosc,  "#000000"  }, // Tagbar selected
     38 	[SchemeInfoNorm]  = { col_gray3, col_gray1,  "#000000"  }, // Tagbar selected
     39 };
     40 
     41 /* tagging */
     42 //static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
     43 static const char *tags[] = { "1", "2", "3", "4", "5" };
     44 
     45 static const Rule rules[] = {
     46 	/* xprop(1):
     47 	 *	WM_CLASS(STRING) = instance, class
     48 	 *	WM_NAME(STRING) = title
     49 	 */
     50 	/* class      instance    title       tags mask     isfloating   monitor */
     51 	{ "Gimp",     NULL,       NULL,       0,            1,           -1 },
     52 	{ "Firefox",  NULL,       NULL,       1 << 8,       0,           -1 },
     53 };
     54 
     55 /* layout(s) */
     56 static const float mfact     = 0.55; /* factor of master area size [0.05..0.95] */
     57 static const int nmaster     = 1;    /* number of clients in master area */
     58 static const int resizehints = 1;    /* 1 means respect size hints in tiled resizals */
     59 static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
     60 
     61 static const Layout layouts[] = {
     62 	/* symbol     arrange function */
     63 	{ "[]=",      tile },    /* first entry is default */
     64 	{ "><>",      NULL },    /* no layout function means floating behavior */
     65 	{ "[M]",      monocle },
     66 };
     67 
     68 /* key definitions */
     69 #define MODKEY Mod1Mask
     70 #define TAGKEYS(KEY,TAG) \
     71 	{ MODKEY,                       KEY,      view,           {.ui = 1 << TAG} }, \
     72 	{ MODKEY|ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
     73 	{ MODKEY|ShiftMask,             KEY,      tag,            {.ui = 1 << TAG} }, \
     74 	{ MODKEY|ControlMask|ShiftMask, KEY,      toggletag,      {.ui = 1 << TAG} },
     75 
     76 /* helper for spawning shell commands in the pre dwm-5.0 fashion */
     77 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
     78 
     79 /* commands */
     80 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
     81 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_fosc, "-sf", col_gray4, NULL };
     82 static const char *termcmd[]  = { "st", NULL };
     83 
     84 static Key keys[] = {
     85 	/* modifier                     key        function        argument */
     86 	{ MODKEY,                       XK_p,      spawn,          {.v = dmenucmd } },
     87 	{ MODKEY|ShiftMask,             XK_Return, spawn,          {.v = termcmd } },
     88 	{ MODKEY,                       XK_b,      togglebar,      {0} },
     89 	{ MODKEY,                       XK_j,      focusstack,     {.i = +1 } },
     90 	{ MODKEY,                       XK_k,      focusstack,     {.i = -1 } },
     91 	{ MODKEY,                       XK_i,      incnmaster,     {.i = +1 } },
     92 	{ MODKEY,                       XK_d,      incnmaster,     {.i = -1 } },
     93 	{ MODKEY,                       XK_h,      setmfact,       {.f = -0.05} },
     94 	{ MODKEY,                       XK_l,      setmfact,       {.f = +0.05} },
     95 	{ MODKEY,                       XK_Return, zoom,           {0} },
     96 	{ MODKEY,                       XK_q,      zoom,           {0} },
     97 	{ MODKEY,                       XK_Tab,    view,           {0} },
     98 	{ MODKEY|ShiftMask,             XK_c,      killclient,     {0} },
     99 	{ MODKEY,                       XK_t,      setlayout,      {.v = &layouts[0]} },
    100 	{ MODKEY,                       XK_f,      setlayout,      {.v = &layouts[1]} },
    101 	{ MODKEY,                       XK_m,      setlayout,      {.v = &layouts[2]} },
    102 	{ MODKEY,                       XK_space,  setlayout,      {0} },
    103 	{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
    104 	{ MODKEY,                       XK_s,      togglesticky,   {0} },
    105 	{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },
    106 	{ MODKEY|ShiftMask,             XK_0,      tag,            {.ui = ~0 } },
    107 	{ MODKEY,                       XK_comma,  focusmon,       {.i = -1 } },
    108 	{ MODKEY,                       XK_period, focusmon,       {.i = +1 } },
    109 	{ MODKEY|ShiftMask,             XK_comma,  tagmon,         {.i = -1 } },
    110 	{ MODKEY|ShiftMask,             XK_period, tagmon,         {.i = +1 } },
    111 	{ MODKEY,                       XK_minus,  setgaps,        {.i = -1 } },
    112 	{ MODKEY,                       XK_equal,  setgaps,        {.i = +1 } },
    113 	{ MODKEY|ShiftMask,             XK_equal,  setgaps,        {.i = 0  } },
    114 	TAGKEYS(                        XK_1,                      0)
    115 	TAGKEYS(                        XK_2,                      1)
    116 	TAGKEYS(                        XK_3,                      2)
    117 	TAGKEYS(                        XK_4,                      3)
    118 	TAGKEYS(                        XK_5,                      4)
    119 	TAGKEYS(                        XK_6,                      5)
    120 	TAGKEYS(                        XK_7,                      6)
    121 	TAGKEYS(                        XK_8,                      7)
    122 	TAGKEYS(                        XK_9,                      8)
    123 	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
    124 };
    125 
    126 /* button definitions */
    127 /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    128 static Button buttons[] = {
    129 	/* click                event mask      button          function        argument */
    130 	{ ClkTagBar,            MODKEY,         Button1,        tag,            {0} },
    131 	{ ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
    132 	{ ClkWinTitle,          0,              Button2,        zoom,           {0} },
    133 	{ ClkStatusText,        0,              Button2,        spawn,          {.v = termcmd } },
    134 	{ ClkClientWin,         MODKEY,         Button1,        movemouse,      {0} },
    135 	{ ClkClientWin,         MODKEY,         Button2,        togglefloating, {0} },
    136 	{ ClkClientWin,         MODKEY,         Button2,        resizemouse,    {0} },
    137 	{ ClkTagBar,            0,              Button1,        view,           {0} },
    138 	{ ClkTagBar,            0,              Button3,        toggleview,     {0} },
    139 	{ ClkTagBar,            MODKEY,         Button1,        tag,            {0} },
    140 	{ ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
    141 };
    142