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.

65 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. #define ARRANGE dotile /* dofloat */
  6. #define FONT "fixed"
  7. #define BGCOLOR "#666699"
  8. #define FGCOLOR "#eeeeee"
  9. #define BORDERCOLOR "#9999CC"
  10. #define MODKEY Mod1Mask
  11. #define NUMLOCKMASK Mod2Mask
  12. #define MASTERW 52 /* percent */
  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 *term[] = { "xterm", NULL };
  25. #define KEYS \
  26. static Key key[] = { \
  27. /* modifier key function arguments */ \
  28. { MODKEY, XK_0, view, { .i = Tfnord } }, \
  29. { MODKEY, XK_1, view, { .i = Tdev } }, \
  30. { MODKEY, XK_2, view, { .i = Tnet } }, \
  31. { MODKEY, XK_3, view, { .i = Twork } }, \
  32. { MODKEY, XK_4, view, { .i = Tmisc} }, \
  33. { MODKEY, XK_h, viewprev, { 0 } }, \
  34. { MODKEY, XK_j, focusnext, { 0 } }, \
  35. { MODKEY, XK_k, focusprev, { 0 } }, \
  36. { MODKEY, XK_l, viewnext, { 0 } }, \
  37. { MODKEY, XK_m, togglemax, { 0 } }, \
  38. { MODKEY, XK_space, togglemode, { 0 } }, \
  39. { MODKEY, XK_Return, zoom, { 0 } }, \
  40. { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \
  41. { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \
  42. { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \
  43. { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \
  44. { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \
  45. { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \
  46. { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \
  47. { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \
  48. { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \
  49. { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \
  50. { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
  51. { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
  52. { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \
  53. };
  54. #define RULES \
  55. static Rule rule[] = { \
  56. /* class:instance tags isfloat */ \
  57. { "Firefox.*", { [Tnet] = "net" }, False }, \
  58. { "Gimp.*", { 0 }, True}, \
  59. };