Another copy of my dotfiles. Because I don't completely trust GitHub.
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.

66 lines
3.3 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. /* See LICENSE file for copyright and license details. */
  2. #include <X11/XF86keysym.h>
  3. /* appearance */
  4. static const int rmaster = 0; /* 1 = master at right*/
  5. static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
  6. static const unsigned int systrayspacing = 2; /* systray spacing */
  7. static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
  8. static int showsystray = 1; /* 0 means no systray */
  9. static const int tag_padding = 0;
  10. static const char *layoutmenu_cmd = "~/.scripts/layoutmenu.sh";
  11. static const char autostartblocksh[] = "autostart_blocking.sh";
  12. static const char autostartsh[] = "autostart.sh";
  13. static const char dwmdir[] = "dwm";
  14. static const char localshare[] = ".config/suckless";
  15. /* systray */
  16. static int tagindicatortype = INDICATOR_TOP_LEFT_SQUARE;
  17. static int tiledindicatortype = INDICATOR_NONE;
  18. static int floatindicatortype = INDICATOR_TOP_LEFT_SQUARE;
  19. /* vanity gaps */
  20. static const unsigned int gappih = 20; /* horiz inner gap between windows */
  21. static const unsigned int gappiv = 10; /* vert inner gap between windows */
  22. static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
  23. static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */
  24. static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
  25. /* tagging */
  26. static char *tagicons[][NUMTAGS] = {
  27. [DEFAULT_TAGS] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" },
  28. [ALTERNATIVE_TAGS] = { "A", "B", "C", "D", "E", "F", "G", "H", "I" },
  29. };
  30. /* layout(s) */
  31. static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */
  32. static const int nmaster = 1; /* number of clients in master area */
  33. static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */
  34. static const Layout layouts[] = {
  35. /* symbol arrange function */
  36. { "", tile }, /* first entry is default */
  37. { "", dwindle },
  38. { "", grid },
  39. { "", centeredmaster },
  40. { "", centeredfloatingmaster },
  41. { "[M]", monocle },
  42. { "[D]", deck },
  43. };
  44. const char *spcmd1[] = {"st", "-c", "scratchpad", "-n", "spterm", "-g", "120x34", NULL };
  45. const char *spcmd2[] = {"sxiv", "-N", "spsxiv", "-b", "-g","900x300+500+350", "/home/yigit/Pictures/us_keyboard.png", NULL};
  46. static Sp scratchpads[] = {
  47. {"spterm", spcmd1},
  48. {"spsxiv", spcmd2},
  49. };
  50. static const BarRule barrules[] = {
  51. /* monitor bar alignment widthfunc drawfunc clickfunc name */
  52. { -1, 0, BAR_ALIGN_LEFT, width_tags, draw_tags, click_tags, "tags" },
  53. //{ 0, 0, BAR_ALIGN_RIGHT, width_systray, draw_systray, click_systray, "systray" },
  54. { -1, 0, BAR_ALIGN_LEFT, width_ltsymbol, draw_ltsymbol, click_ltsymbol, "layout" },
  55. { 'A', 0, BAR_ALIGN_RIGHT, width_status2d, draw_status2d, click_statuscmd, "status2d" },
  56. };