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.

62 lines
2.1 KiB

  1. /*
  2. * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
  3. * See LICENSE file for license details.
  4. */
  5. enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast };
  6. #define TAGS \
  7. char *tags[TLast] = { \
  8. [Tfnord] = "fnord", \
  9. [Tdev] = "dev", \
  10. [Tnet] = "net", \
  11. [Twork] = "work", \
  12. [Tmisc] = "misc", \
  13. };
  14. #define DEFMODE dotile /* dofloat */
  15. #define DEFTAG Tdev
  16. #define FONT "fixed"
  17. #define BGCOLOR "#666699"
  18. #define FGCOLOR "#eeeeee"
  19. #define BORDERCOLOR "#9999CC"
  20. #define MODKEY Mod1Mask
  21. #define NUMLOCKMASK Mod2Mask
  22. #define MASTERW 52 /* percent */
  23. #define KEYS \
  24. const char *term[] = { "xterm", NULL }; \
  25. static Key key[] = { \
  26. /* modifier key function arguments */ \
  27. { MODKEY, XK_0, view, { .i = Tfnord } }, \
  28. { MODKEY, XK_1, view, { .i = Tdev } }, \
  29. { MODKEY, XK_2, view, { .i = Tnet } }, \
  30. { MODKEY, XK_3, view, { .i = Twork } }, \
  31. { MODKEY, XK_4, view, { .i = Tmisc} }, \
  32. { MODKEY, XK_h, viewprev, { 0 } }, \
  33. { MODKEY, XK_j, focusnext, { 0 } }, \
  34. { MODKEY, XK_k, focusprev, { 0 } }, \
  35. { MODKEY, XK_l, viewnext, { 0 } }, \
  36. { MODKEY, XK_m, togglemax, { 0 } }, \
  37. { MODKEY, XK_space, togglemode, { 0 } }, \
  38. { MODKEY, XK_Return, zoom, { 0 } }, \
  39. { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \
  40. { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \
  41. { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \
  42. { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \
  43. { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \
  44. { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \
  45. { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \
  46. { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \
  47. { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \
  48. { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \
  49. { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
  50. { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
  51. { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \
  52. };
  53. #define RULES \
  54. static Rule rule[] = { \
  55. /* class:instance tags isfloat */ \
  56. { "Firefox.*", { [Tnet] = "net" }, False }, \
  57. { "Gimp.*", { 0 }, True}, \
  58. };