logo

inaban

Distrustful Wayland Compositor (inspired by XMonad and dwm) git clone https://hacktivis.me/git/inaban.git

config.h (1444B)


  1. // SPDX-FileCopyrightText: 2019-2022 inaban Authors <https://hacktivis.me/git/inaban>
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. #ifndef CONFIG_H
  4. #define CONFIG_H
  5. //static const char *menucmd[] = {"bemenu-run", NULL};
  6. static char *termcmd[] = {"svte", NULL};
  7. static const float background_color[4] = {0.11f, 0.11f, 0.11f, 1.0f}; // approx. gruvbox hard-dark
  8. static const float border_color[4] = {0.25f, 0.25f, 0.50f, 1.0f};
  9. static const float locked_color[4] = {0.50f, 0.25f, 0.25f, 1.0f};
  10. #define BORDER_SIZE 1
  11. // See `enum wlr_keyboard_modifier` in `<wlr/types/wlr_keyboard.h>`
  12. //#define ModMask WLR_MODIFIER_ALT
  13. #define ModMask WLR_MODIFIER_LOGO
  14. #define ShiftMask WLR_MODIFIER_SHIFT
  15. // See <xkbcommon/xkbcommon-keysyms.h>
  16. #define ModKey XKB_KEY_Super_L
  17. // clang-format off
  18. static Shortcut shortcuts[] = {
  19. /* modifier, keysym, function, argument */
  20. // {ModMask, XKB_KEY_p, spawn, {.v = menucmd}},
  21. {ModMask, XKB_KEY_Return, spawn, {.v = termcmd}},
  22. {ModMask & ShiftMask, XKB_KEY_q, quit, {0}},
  23. {ModMask, XKB_KEY_l, lock, {0}},
  24. // {MODKEY | ShiftMask, XKB_KEY_c, killclient, {0}},
  25. // {MODKEY, XKB_KEY_j, focusstack, {.i = +1}},
  26. // {MODKEY, XKB_KEY_k, focusstack, {.i = -1}},
  27. };
  28. // clang-format on
  29. #endif /* CONFIG_H */