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.

67 lines
2.5 KiB

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