Advertisement
ppkombo61

Untitled

May 14th, 2020
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.96 KB | None | 0 0
  1. /* See LICENSE file for copyright and license deutails. */
  2.  
  3. /* appearance */
  4. static const unsigned int borderpx = 4; /* border pixel of windows */
  5. static const unsigned int snap = 32; /* snap pixel */
  6. static const int showbar = 1; /* 0 means no bar */
  7. static const int topbar = 1; /* 0 means bottom bar */
  8. static const char *fonts[] = { "IBMPlexMono-ExtraLight:size=14" };
  9. static const char dmenufont[] = "IBMPlexMono-ExtraLight:size=14";
  10. static const char col_gray1[] = "#FFFFFF"; /* color fondo tabs */
  11. static const char col_gray2[] = "#5A5A5A"; /* color borde ventana inactiva */
  12. static const char col_gray3[] = "#000000"; /* color texto tabs inactivas */
  13. static const char col_gray4[] = "#FFFFFF"; /* color tabs */
  14. static const char col_cyan[] = "#005577"; /* colo barra informacion */
  15. static const char col_highlight[] = "#FFFFFF"; /* borde ventana activa */
  16. static const char *colors[][3] = {
  17.  
  18. /* fg bg border */
  19. [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
  20. [SchemeSel] = { col_gray4, col_cyan, col_highlight },
  21.  
  22. };
  23.  
  24. /* tagging */
  25. static const char *tags[] = { " 1 ", " 2 ", " 3 ", " 4 " };
  26. static const Rule rules[] = {
  27. /* xprop(1):
  28. * WM_CLASS(STRING) = instance, class
  29. * WM_NAME(STRING) = title
  30. */
  31. /* class instance title tags mask isfloating monitor */
  32. { "Firefox", NULL, NULL, 1<< 3, 0, -1 },
  33. };
  34.  
  35. /* layout(s) */
  36. static const float mfact = 0.70; /* factor of master area size [0.05..0.95] */
  37. static const int nmaster = 1; /* number of clients in master area */
  38. static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */
  39.  
  40. static const Layout layouts[] = {
  41. /* symbol arrange function */
  42. { "[ Baldosa ] ", tile }, /* first entry is default */
  43. { "[ Flotante ] ", NULL }, /* no layout function means floating behavior */
  44. { "[ Maximizado ] ", monocle },
  45. { "[ Zocalo ] ", bstack },
  46. };
  47.  
  48. /* key definitions */
  49. #define MODKEY Mod4Mask
  50. #define TAGKEYS(KEY,TAG ) \
  51. { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
  52. { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
  53. { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
  54. { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
  55.  
  56. /* helper for spawning shell commands in the pre dwm-5.0 fashion */
  57. #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
  58.  
  59. /* commands */
  60. static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
  61. static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
  62. static const char *termcmd[] = { "st", NULL };
  63. static const char *firefoxcmd[] = { "firefox", NULL };
  64. static const char *gmruncmd[] = { "gmrun", NULL };
  65.  
  66. static Key keys[] = {
  67. /* modifier key function argument */
  68. { MODKEY, XK_p, spawn, {.v = dmenucmd } },
  69. { MODKEY, XK_Return, spawn, {.v = termcmd } },
  70. { MODKEY, XK_n, spawn, {.v = firefoxcmd } },
  71. { MODKEY, XK_g, spawn, {.v = gmruncmd } },
  72. { MODKEY, XK_o, togglebar, {0} },
  73. { MODKEY, XK_r, focusstack, {.i = +1 } },
  74. { MODKEY, XK_i, incnmaster, {.i = +1 } },
  75. { MODKEY, XK_d, incnmaster, {.i = -1 } },
  76. { MODKEY, XK_Left, setmfact, {.f = -0.01} },
  77. { MODKEY, XK_Right, setmfact, {.f = +0.01} },
  78. { MODKEY, XK_t, zoom, {0} },
  79. { MODKEY, XK_c, killclient, {0} },
  80. { MODKEY, XK_b, setlayout, {.v = &layouts[0]} },
  81. { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
  82. { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
  83. { MODKEY, XK_z, setlayout, {.v = &layouts[3]} },
  84. { MODKEY, XK_a, view, {.ui = ~0 } },
  85. { MODKEY, XK_q, quit, {0} },
  86. { MODKEY, XK_w, quit, {1} },
  87. TAGKEYS( XK_j, 0)
  88. TAGKEYS( XK_k, 1)
  89. TAGKEYS( XK_l, 2)
  90. TAGKEYS( XK_ntilde, 3)
  91. };
  92.  
  93. /* button definitions */
  94. /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
  95. static Button buttons[] = {
  96. /* click event mask button function argument */
  97. { ClkLtSymbol, 0, Button1, setlayout, {0} },
  98. { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
  99. { ClkWinTitle, 0, Button2, zoom, {0} },
  100. { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
  101. { ClkClientWin, MODKEY, Button1, movemouse, {0} },
  102. { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
  103. { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
  104. { ClkTagBar, 0, Button1, view, {0} },
  105. { ClkTagBar, 0, Button3, toggleview, {0} },
  106. { ClkTagBar, MODKEY, Button1, tag, {0} },
  107. { ClkTagBar, MODKEY, Button3, toggletag, {0} },
  108. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement