Configuration of dwm for Mac Computers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.6 KiB

  1. /*
  2. * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
  3. * See LICENSE file for license details.
  4. */
  5. #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
  6. #define BGCOLOR "#0a2c2d"
  7. #define FGCOLOR "#ddeeee"
  8. #define BORDERCOLOR "#176164"
  9. #define MODKEY Mod1Mask
  10. #define NUMLOCKMASK Mod2Mask
  11. #define MASTERW 52 /* percent */
  12. #define WM_PROTOCOL_DELWIN 1
  13. enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast };
  14. #define TAGS \
  15. char *tags[TLast] = { \
  16. [Tfnord] = "fnord", \
  17. [Tdev] = "dev", \
  18. [Tnet] = "net", \
  19. [Twork] = "work", \
  20. [Tmisc] = "misc", \
  21. };
  22. #define DEFTAG Tdev
  23. #define CMDS \
  24. const char *browse[] = { "firefox", NULL }; \
  25. const char *gimp[] = { "gimp", NULL }; \
  26. const char *term[] = { \
  27. "urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", \
  28. "-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL \
  29. }; \
  30. const char *xlock[] = { "xlock", NULL };
  31. #define KEYS \
  32. static Key key[] = { \
  33. /* modifier key function arguments */ \
  34. { MODKEY, XK_0, view, { .i = Tfnord } }, \
  35. { MODKEY, XK_1, view, { .i = Tdev } }, \
  36. { MODKEY, XK_2, view, { .i = Tnet } }, \
  37. { MODKEY, XK_3, view, { .i = Twork } }, \
  38. { MODKEY, XK_4, view, { .i = Tmisc} }, \
  39. { MODKEY, XK_h, viewprev, { 0 } }, \
  40. { MODKEY, XK_j, focusnext, { 0 } }, \
  41. { MODKEY, XK_k, focusprev, { 0 } }, \
  42. { MODKEY, XK_l, viewnext, { 0 } }, \
  43. { MODKEY, XK_m, togglemax, { 0 } }, \
  44. { MODKEY, XK_space, togglemode, { 0 } }, \
  45. { MODKEY, XK_Return, zoom, { 0 } }, \
  46. { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \
  47. { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \
  48. { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \
  49. { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \
  50. { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \
  51. { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \
  52. { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \
  53. { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \
  54. { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \
  55. { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \
  56. { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
  57. { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
  58. { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \
  59. { MODKEY|ShiftMask, XK_g, spawn, { .argv = gimp } }, \
  60. { MODKEY|ShiftMask, XK_l, spawn, { .argv = xlock } }, \
  61. { MODKEY|ShiftMask, XK_w, spawn, { .argv = browse } }, \
  62. };
  63. #define RULES \
  64. static Rule rule[] = { \
  65. /* class:instance tags isfloat */ \
  66. { "Firefox.*", { [Tnet] = "net" }, False }, \
  67. { "Gimp.*", { 0 }, True}, \
  68. };
  69. #define ARRANGE dotile