config.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // ____ _____ _ ______ ___ //
  2. // / __ `/ __ \ | /| / / __ `__ \ //
  3. // / /_/ / /_/ / |/ |/ / / / / / / //
  4. // \__, / .___/|__/|__/_/ /_/ /_/ //
  5. // /_/_/ //
  6. // //
  7. // qpwm in mind //
  8. #ifndef CONFIG_H
  9. #define CONFIG_H
  10. // mod key
  11. // Mod4Mask - win
  12. // Mod1Mask - alt
  13. #define MOD Mod4Mask
  14. // app launcher
  15. // rofi or dmenu
  16. const char *menu[] = {"dmenu_run", 0};
  17. // terminal
  18. // st by default
  19. // write any other if necessary
  20. const char *term[] = {"sakura", "-m", 0};
  21. const char *browser[] = {"firefox", 0};
  22. const char *librewolf[] = {"librewolf", 0};
  23. const char *volmute[] = {"amixer", "set", "Master", "toggle", 0};
  24. const char *voldown[] = {"amixer", "set", "Master", "5%-", 0};
  25. const char *volup[] = {"amixer", "set", "Master", "5%+", 0};
  26. const char *bridown[] = {"light", "-U", "10", 0};
  27. const char *briup[] = {"light", "-A", "10", 0};
  28. const char *fm[] = {"qtfm", 0};
  29. // action bindings
  30. static struct key keys[] = {
  31. {MOD, XK_q, win_kill, {0}},
  32. {MOD, XK_c, win_center, {0}},
  33. {MOD, XK_f, win_fs, {0}},
  34. {Mod1Mask, XK_Tab, win_next, {0}},
  35. {Mod1Mask | ShiftMask, XK_Tab, win_prev, {0}},
  36. {MOD, XK_d, run, {.com = menu}},
  37. {MOD, XK_Return, run, {.com = term}},
  38. {MOD | ShiftMask, XK_q, quit, {0}},
  39. {MOD | ShiftMask, XK_b, run, {.com = browser}},
  40. {MOD | ShiftMask, XK_i, run, {.com = librewolf}},
  41. {MOD, XK_F1, run, {.com = volmute}},
  42. {MOD, XK_F2, run, {.com = voldown}},
  43. {MOD, XK_F3, run, {.com = volup}},
  44. {MOD, XK_F5, run, {.com = bridown}},
  45. {MOD, XK_F6, run, {.com = briup}},
  46. {MOD | ShiftMask, XK_f, run, {.com = fm}},
  47. // workspaces bindings
  48. {MOD, XK_1, ws_go, {.i = 1}},
  49. {MOD | ShiftMask, XK_1, win_to_ws, {.i = 1}},
  50. {MOD, XK_2, ws_go, {.i = 2}},
  51. {MOD | ShiftMask, XK_2, win_to_ws, {.i = 2}},
  52. {MOD, XK_3, ws_go, {.i = 3}},
  53. {MOD | ShiftMask, XK_3, win_to_ws, {.i = 3}},
  54. {MOD, XK_4, ws_go, {.i = 4}},
  55. {MOD | ShiftMask, XK_4, win_to_ws, {.i = 4}},
  56. {MOD, XK_5, ws_go, {.i = 5}},
  57. {MOD | ShiftMask, XK_5, win_to_ws, {.i = 5}},
  58. {MOD, XK_6, ws_go, {.i = 6}},
  59. {MOD | ShiftMask, XK_6, win_to_ws, {.i = 6}},
  60. };
  61. #endif