dwm.diff 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. diff --git a/config.def.h b/config.def.h
  2. index 9efa774..f8e2282 100644
  3. --- a/config.def.h
  4. +++ b/config.def.h
  5. @@ -1,25 +1,27 @@
  6. /* See LICENSE file for copyright and license details. */
  7. +#include <X11/XF86keysym.h>
  8. /* appearance */
  9. -static const unsigned int borderpx = 1; /* border pixel of windows */
  10. +static const unsigned int borderpx = 3; /* border pixel of windows */
  11. static const unsigned int snap = 32; /* snap pixel */
  12. static const int showbar = 1; /* 0 means no bar */
  13. static const int topbar = 1; /* 0 means bottom bar */
  14. -static const char *fonts[] = { "monospace:size=10" };
  15. -static const char dmenufont[] = "monospace:size=10";
  16. +static const char *fonts[] = { "monospace:size=12" };
  17. +static const char dmenufont[] = "monospace:size=12";
  18. static const char col_gray1[] = "#222222";
  19. static const char col_gray2[] = "#444444";
  20. static const char col_gray3[] = "#bbbbbb";
  21. static const char col_gray4[] = "#eeeeee";
  22. -static const char col_cyan[] = "#005577";
  23. +static const char col_olive[] = "#556b2f";
  24. +static const char col_red[] = "#8b0000";
  25. static const char *colors[][3] = {
  26. /* fg bg border */
  27. [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
  28. - [SchemeSel] = { col_gray4, col_cyan, col_cyan },
  29. + [SchemeSel] = { col_gray4, col_olive, col_red },
  30. };
  31. /* tagging */
  32. -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
  33. +static const char *tags[] = { "1", "2", "3", "4" };
  34. static const Rule rules[] = {
  35. /* xprop(1):
  36. @@ -45,7 +47,7 @@ static const Layout layouts[] = {
  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,14 +59,39 @@ static const Layout layouts[] = {
  45. /* commands */
  46. static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
  47. -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
  48. -static const char *termcmd[] = { "st", NULL };
  49. +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_olive, "-sf", col_gray4, NULL };
  50. +static const char *termcmd[] = { "/bin/sh", "/home/kev/bin/launch-uxterm", NULL };
  51. +static const char *lockcmd[] = { "xlock", "-mode", "star", "-trek", "1000", NULL };
  52. +/* this is my modified passmenu */
  53. +static const char *passmenucmd[] = { "passmenu", "--type", NULL };
  54. +static const char *usernamecmd[] = { "passmenu", "--type", "--username", NULL };
  55. +static const char *urlcmd[] = { "passmenu", "--type", "--url", NULL };
  56. +static const char *rotatecmd[2][4] = {
  57. + { "/bin/sh", "/home/kev/bin/rotate-screen", "right", NULL },
  58. + { "/bin/sh", "/home/kev/bin/rotate-screen", "inverted", NULL },
  59. +};
  60. +static const char *volumecmd[2][5] = {
  61. + { "/bin/sh", "/home/kev/bin/mixer-ctrl", "outputs.master", "increase", NULL },
  62. + { "/bin/sh", "/home/kev/bin/mixer-ctrl", "outputs.master", "decrease", NULL },
  63. +};
  64. +static const char *copycmd[] = { "/bin/sh", "/home/kev/bin/xci", NULL };
  65. +static const char *pastecmd[] = { "/bin/sh", "/home/kev/bin/xco", NULL };
  66. static const Key keys[] = {
  67. /* modifier key function argument */
  68. - { MODKEY, XK_p, spawn, {.v = dmenucmd } },
  69. + { 0, XF86XK_Eject, spawn, {.v = rotatecmd[0] } },
  70. + { 0, XF86XK_RotateWindows, spawn, {.v = rotatecmd[1] } },
  71. + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volumecmd[0] } },
  72. + { 0, XF86XK_AudioLowerVolume, spawn, {.v = volumecmd[1] } },
  73. + { MODKEY, XK_space, spawn, {.v = dmenucmd } },
  74. { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
  75. + { MODKEY|ShiftMask, XK_l, spawn, {.v = lockcmd } },
  76. + { MODKEY, XK_p, spawn, {.v = passmenucmd } },
  77. + { MODKEY|ShiftMask, XK_u, spawn, {.v = urlcmd } },
  78. + { MODKEY, XK_u, spawn, {.v = usernamecmd } },
  79. { MODKEY, XK_b, togglebar, {0} },
  80. + { MODKEY, XK_Tab, focusstack, {.i = +1 } },
  81. + { MODKEY|ShiftMask, XK_Tab, focusstack, {.i = -1 } },
  82. { MODKEY, XK_j, focusstack, {.i = +1 } },
  83. { MODKEY, XK_k, focusstack, {.i = -1 } },
  84. { MODKEY, XK_i, incnmaster, {.i = +1 } },
  85. @@ -72,12 +99,14 @@ static const Key keys[] = {
  86. { MODKEY, XK_h, setmfact, {.f = -0.05} },
  87. { MODKEY, XK_l, setmfact, {.f = +0.05} },
  88. { MODKEY, XK_Return, zoom, {0} },
  89. - { MODKEY, XK_Tab, view, {0} },
  90. - { MODKEY|ShiftMask, XK_c, killclient, {0} },
  91. + { MODKEY, XK_v, view, {0} },
  92. +// { MODKEY, XK_q, killclient, {0} },
  93. + { MODKEY|ShiftMask, XK_w, killclient, {0} },
  94. + { MODKEY, XK_w, spawn, {.v = copycmd } },
  95. + { MODKEY, XK_y, spawn, {.v = pastecmd } },
  96. { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
  97. { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
  98. { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
  99. - { MODKEY, XK_space, setlayout, {0} },
  100. { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
  101. { MODKEY, XK_0, view, {.ui = ~0 } },
  102. { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
  103. @@ -113,4 +142,3 @@ static const Button buttons[] = {
  104. { ClkTagBar, MODKEY, Button1, tag, {0} },
  105. { ClkTagBar, MODKEY, Button3, toggletag, {0} },
  106. };
  107. -