config.h 845 B

123456789101112131415161718192021
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. static const char *menucmd[] = {"bemenu-run", NULL};
  4. static const char *termcmd[] = {"cage", "-d", "st", NULL};
  5. // See `enum wlr_keyboard_modifier` in `<wlr/types/wlr_keyboard.h>`
  6. #define MODKEY WLR_MODIFIER_ALT
  7. // clang-format off
  8. static Shortcut shortcuts[] = {
  9. /* modifier, keysym, function, argument */
  10. {MODKEY, XKB_KEY_p, spawn, {.v = menucmd}},
  11. {MODKEY | ShiftMask, XKB_KEY_Return, spawn, {.v = termcmd}},
  12. {MODKEY | ShiftMask, XKB_KEY_q, quit, {0}},
  13. // {MODKEY | ShiftMask, XKB_KEY_c, killclient, {0}},
  14. {MODKEY, XKB_KEY_j, focus_next_view, {0}},
  15. // {MODKEY, XKB_KEY_k, focusstack, {.i = -1}},
  16. };
  17. // clang-format on
  18. #endif /* CONFIG_H */