aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h286
1 files changed, 0 insertions, 286 deletions
diff --git a/config.h b/config.h
deleted file mode 100644
index 549b8b0..0000000
--- a/config.h
+++ /dev/null
@@ -1,286 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-
-/* appearance */
-static const unsigned int borderpx = 3; /* border pixel of windows */
-static const unsigned int gappx = 10; /* gaps between windows */
-static const unsigned int snap = 32; /* snap pixel */
-static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
-static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */
-static const unsigned int systrayspacing = 2; /* systray spacing */
-static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
-static const int showsystray = 1; /* 0 means no systray */
-static const int showbar = 0; /* 0 means no bar */
-static const int topbar = 1; /* 0 means bottom bar */
-static const int user_bh = 22; /* 0 means that dwm will calculate bar height, >= 1 means dwm will user_bh as bar height */
-static const int focusonwheel = 0;
-static const unsigned int stairpx = 25; /* depth of the stairs layout */
-static const int stairdirection = 1; /* 0: left-aligned, 1: right-aligned */
-static const int stairsamesize = 1; /* 1 means shrink all the staired windows to the same size */
-static const char *fonts[] = { "UbuntuMono Nerd Font:size=14" };
-static const char dmenufont[] = "monospace:size=11";
-static const char col_gray1[] = "#222222";
-static const char col_gray2[] = "#444444";
-static const char col_gray3[] = "#bbbbbb";
-static const char col_gray4[] = "#eeeeee";
-static const char col_cyan[] = "#900000";
-static const char *colors[][3] = {
- /* fg bg border */
- [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
- [SchemeSel] = { col_gray4, col_cyan, col_cyan },
-};
-
-/* tagging */
-static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
-static const char *tagsel[][2] = {
- { "#ffffff", "#900000" },
- { "#ffffff", "#ff7f00" },
- { "#000000", "#ffff00" },
- { "#000000", "#00ff00" },
- { "#ffffff", "#0000ff" },
- { "#ffffff", "#4b0082" },
- { "#ffffff", "#9400d3" },
- { "#000000", "#ffffff" },
- { "#ffffff", "#000000" },
-};
-
-
-/* grid of tags */
-#define DRAWCLASSICTAGS 1 << 0
-#define DRAWTAGGRID 1 << 1
-
-#define SWITCHTAG_UP 1 << 0
-#define SWITCHTAG_DOWN 1 << 1
-#define SWITCHTAG_LEFT 1 << 2
-#define SWITCHTAG_RIGHT 1 << 3
-#define SWITCHTAG_TOGGLETAG 1 << 4
-#define SWITCHTAG_TAG 1 << 5
-#define SWITCHTAG_VIEW 1 << 6
-#define SWITCHTAG_TOGGLEVIEW 1 << 7
-
-static const unsigned int drawtagmask = DRAWTAGGRID; /* | DRAWCLASSICTAGS to show classic row of tags */
-static const int tagrows = 2;
-
-static const Rule rules[] = {
- /* xprop(1):
- * WM_CLASS(STRING) = instance, class
- * WM_NAME(STRING) = title
- */
- /* class instance title tags mask switchtotag, isfloating isfreesize monitor */
- { "st", NULL, NULL, 0, 0, 0, 0, -1 },
- { "St", NULL, NULL, 0, 0, 0, 0, -1 }, /* St with Xresources patch */
- { "xterm-256color", NULL, NULL, 0, 0, 0, 0, -1 },
- { "mpv", NULL, NULL, 0, 0, 0, 0, -1 },
- { "Alacritty", NULL, NULL, 0, 0, 0, 0, -1 },
- { "rclone-browser", NULL, NULL, 1 << 1, 0, 0, 0, 2 },
- { "org.remmina.Remmina", NULL, NULL, 1 << 2, 0, 0, 0, 2 },
- { "Vmware", NULL, NULL, 1 << 3, 0, 0, 0, 2 },
- { "Microsoft Teams - Preview", NULL, NULL, 0, 0, 0, 0, 1 },
- { "thunderbird", NULL, NULL, 1 << 1, 0, 0, 0, 1 },
- { NULL, NULL, "Event Tester", 0, 0, 0, 0, -1 }, /* xev */
-};
-
-/* layout(s) */
-static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */
-static const int nmaster = 1; /* number of clients in master area */
-static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */
-static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
-
-static const Layout layouts[] = {
- /* symbol arrange function */
- { "[S]", stairs },
- { "[]=", tile }, /* first entry is default */
- { "TTT", bstack },
- { "===", bstackhoriz },
- { "|M|", centeredmaster },
- { ">M>", centeredfloatingmaster },
- { "[M]", monocle },
- { "><>", NULL }, /* no layout function means floating behavior */
-};
-
-/* key definitions */
-#define MODKEY Mod4Mask
-#define METAKEY Mod1Mask
-#define TAGKEYS(KEY,TAG) \
- { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
- { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
- { MODKEY|ControlMask, KEY, tagprevmon, {.ui = 1 << TAG} }, \
- { MODKEY|ControlMask|ShiftMask, KEY, tagnextmon, {.ui = 1 << TAG} }, \
- { MODKEY|METAKEY, KEY, toggletag, {.ui = 1 << TAG} }, \
- { MODKEY|METAKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} },
-
-/* helper for spawning shell commands in the pre dwm-5.0 fashion */
-#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
-
-/* commands */
-static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
-static const char *term_cmd[] = { "alacritty", NULL };
-static const char *hardflip_cmd[] = { "alacritty", "-e", "hf", NULL };
-static const char *dmenu_cmd[] = { "dmenu_run", "-i", "-m", "0", NULL };
-static const char *dmapps_cmd[] = { "/home/jozan/.local/bin/dmapps", NULL };
-static const char *dmpc_cmd[] = { "/home/jozan/.local/bin/dmpc", NULL };
-static const char *dmkill_cmd[] = { "/home/jozan/.local/bin/dmkill", NULL };
-static const char *dmsearch_cmd[] = { "/home/jozan/.local/bin/dmsearch", NULL };
-static const char *dmscrot_cmd[] = { "/home/jozan/.local/bin/dmscrot", NULL };
-static const char *dmlog_cmd[] = { "/home/jozan/.local/bin/dmlog", NULL };
-static const char *dmpass_full_cmd[] = { "/home/jozan/.local/bin/dmpass", "--full", NULL };
-static const char *dmpass_cmd[] = { "/home/jozan/.local/bin/dmpass", NULL };
-static const char *dmotp_cmd[] = { "/home/jozan/.local/bin/dmotp", NULL };
-static const char *ndate_cmd[] = { "/home/jozan/.local/bin/ndate", NULL };
-static const char *file_cmd[] = { "alacritty", "-e", "zsh", "-ic", "lf", NULL };
-static const char *file_alt_cmd[] = { "pcmanfm", NULL };
-static const char *edit_cmd[] = { "emacsclient", "-c", NULL };
-static const char *browser_cmd[] = { "firefox", NULL };
-static const char *torbro_cmd[] = { "torify", "librewolf", NULL };
-static const char *w3m_cmd[] = { "alacritty", "-e", "w3m", "https://start.duckduckgo.com/", NULL };
-static const char *nb_cmd[] = { "alacritty", "-e", "newsboat", NULL };
-static const char *ncmpc_cmd[] = { "alacritty", "-e", "ncmpc", NULL };
-static const char *cal_cmd[] = { "alacritty", "-e", "calcurse", "-C", "/home/jozan/.config/calcurse", "-D", "/home/jozan/.local/share/calcurse", NULL };
-static const char *scli_cmd[] = { "alacritty", "-e", "scli", NULL };
-static const char *mutt_cmd[] = { "alacritty", "-e", "neomutt", NULL };
-static const char *gotop_cmd[] = { "alacritty", "-e", "gotop", NULL };
-static const char *htop_cmd[] = { "alacritty", "-e", "htop", NULL };
-static const char *top_cmd[] = { "alacritty", "-e", "top", NULL };
-static const char *bl_inc_cmd[] = { "xbacklight", "-inc", "10", NULL };
-static const char *bl_dec_cmd[] = { "xbacklight", "-dec", "10", NULL };
-static const char *vol_tog_cmd[] = { "/home/jozan/.local/bin/mixer-set", "toggle", NULL };
-static const char *vol_dec_cmd[] = { "/home/jozan/.local/bin/mixer-set", "lower", NULL };
-static const char *vol_inc_cmd[] = { "/home/jozan/.local/bin/mixer-set", "raise", NULL };
-static const char *mic_cmd[] = { "/home/jozan/.local/bin/mic", NULL };
-static const char *mpc_prev_cmd[] = { "mpc", "prev", NULL };
-static const char *mpc_next_cmd[] = { "mpc", "next", NULL };
-static const char *mpc_tog_cmd[] = { "mpc", "toggle", NULL };
-static const char *mpc_stop_cmd[] = { "mpc", "stop", NULL };
-static const char *killespeak_cmd[] = { "/home/jozan/.local/bin/shutup", NULL };
-
-#include "movestack.c"
-#include <X11/XF86keysym.h>
-static Key keys[] = {
- /* modifier key function argument */
- { MODKEY, XK_p, spawn, {.v = dmenu_cmd } },
- { MODKEY, XK_Return, spawn, {.v = term_cmd } },
- { MODKEY|ControlMask|ShiftMask, XK_Return, spawn, {.v = hardflip_cmd } },
- { MODKEY|ControlMask, XK_Return, spawn, {.v = dmapps_cmd } },
- { MODKEY, XK_F1, spawn, {.v = file_cmd } },
- { MODKEY|ShiftMask, XK_F1, spawn, {.v = file_alt_cmd } },
- { MODKEY, XK_F2, spawn, {.v = edit_cmd } },
- { MODKEY, XK_F3, spawn, {.v = browser_cmd } },
- { MODKEY|ShiftMask, XK_F3, spawn, {.v = torbro_cmd } },
- { MODKEY, XK_F4, spawn, {.v = w3m_cmd } },
- { MODKEY, XK_F5, spawn, {.v = ncmpc_cmd } },
- { MODKEY, XK_F6, spawn, {.v = nb_cmd} },
- { MODKEY, XK_F7, spawn, {.v = cal_cmd } },
- { MODKEY, XK_F8, spawn, {.v = scli_cmd } },
- { MODKEY, XK_F9, spawn, {.v = mutt_cmd } },
- { MODKEY, XK_F10, spawn, {.v = gotop_cmd } },
- { MODKEY, XK_F11, spawn, {.v = htop_cmd } },
- { MODKEY, XK_F12, spawn, {.v = top_cmd } },
- { MODKEY|ShiftMask, XK_F6, spawn, {.v = mpc_prev_cmd } },
- { MODKEY|ShiftMask, XK_F7, spawn, {.v = mpc_tog_cmd } },
- { MODKEY|ShiftMask, XK_F8, spawn, {.v = mpc_next_cmd } },
- { MODKEY|ShiftMask, XK_F9, spawn, {.v = mpc_stop_cmd } },
- { MODKEY|ShiftMask, XK_F10, spawn, {.v = vol_tog_cmd } },
- { MODKEY|ShiftMask, XK_F11, spawn, {.v = vol_dec_cmd } },
- { MODKEY|ShiftMask, XK_F12, spawn, {.v = vol_inc_cmd } },
- { MODKEY|ShiftMask, XK_Delete, spawn, {.v = mic_cmd } },
- { MODKEY|ControlMask, XK_F9, spawn, {.v = dmkill_cmd } },
- { MODKEY|ControlMask, XK_F10, spawn, {.v = dmscrot_cmd } },
- { MODKEY|ControlMask, XK_F11, spawn, {.v = dmsearch_cmd } },
- { MODKEY|ControlMask, XK_F12, spawn, {.v = dmlog_cmd } },
- { MODKEY|ControlMask, XK_BackSpace, spawn, {.v = dmlog_cmd } },
- { MODKEY, XK_BackSpace, spawn, {.v = dmpc_cmd } },
- { MODKEY|ControlMask, XK_p, spawn, {.v = dmpass_cmd } },
- { MODKEY|ControlMask|ShiftMask, XK_p, spawn, {.v = dmpass_full_cmd } },
- { MODKEY|ControlMask, XK_o, spawn, {.v = dmotp_cmd } },
- { MODKEY, XK_End, spawn, {.v = ndate_cmd } },
- { 0, XF86XK_MonBrightnessUp, spawn, {.v = bl_inc_cmd } },
- { 0, XF86XK_MonBrightnessDown, spawn, {.v = bl_dec_cmd } },
- { 0, XF86XK_AudioRaiseVolume, spawn, {.v = vol_inc_cmd } },
- { 0, XF86XK_AudioLowerVolume, spawn, {.v = vol_dec_cmd } },
- { 0, XF86XK_AudioMute, spawn, {.v = vol_tog_cmd } },
- { 0, XF86XK_AudioPlay, spawn, {.v = mpc_tog_cmd } },
- { 0, XF86XK_AudioPrev, spawn, {.v = mpc_prev_cmd } },
- { 0, XF86XK_AudioNext, spawn, {.v = mpc_next_cmd } },
- { MODKEY, XK_Delete, spawn, {.v = killespeak_cmd } },
- { MODKEY, XK_b, togglebar, {0} },
- { MODKEY, XK_j, focusstack, {.i = +1 } },
- { MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
- { MODKEY|ControlMask, XK_a, incnmaster, {.i = +1 } },
- { MODKEY|ControlMask, XK_x, incnmaster, {.i = -1 } },
- { MODKEY|ControlMask, XK_minus, setmfact, {.f = -0.025} },
- { MODKEY|ControlMask, XK_equal, setmfact, {.f = +0.025} },
- { MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
- { MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
- { MODKEY|ShiftMask, XK_Return, zoom, {0} },
- { METAKEY, XK_Escape, view, {0} },
- { MODKEY, XK_q, killclient, {0} },
- { MODKEY, XK_s, setlayout, {.v = &layouts[0]} }, /* stairs */
- { MODKEY|ShiftMask, XK_s, setlayout, {.v = &layouts[1]} }, /* tile */
- { MODKEY, XK_z, setlayout, {.v = &layouts[0]} }, /* stairs */
- { MODKEY|ShiftMask, XK_z, setlayout, {.v = &layouts[1]} }, /* tile */
- { MODKEY, XK_x, setlayout, {.v = &layouts[2]} }, /* bottoastack */
- { MODKEY|ShiftMask, XK_x, setlayout, {.v = &layouts[3]} }, /* bottomstackhoriz */
- { MODKEY, XK_c, setlayout, {.v = &layouts[4]} }, /* centeredmaster */
- { MODKEY|ShiftMask, XK_c, setlayout, {.v = &layouts[5]} }, /* centeredfloatingmaster */
- { MODKEY, XK_m, setlayout, {.v = &layouts[6]} }, /* monocle */
- { MODKEY, XK_n, setlayout, {.v = &layouts[7]} }, /* floating */
- { MODKEY|ShiftMask, XK_space, setlayout, {0} },
- { MODKEY, XK_space, togglefloating, {0} },
- { MODKEY, XK_f, togglefullscr, {0} },
- { MODKEY, XK_bracketleft, focusmon, {.i = +1 } },
- { MODKEY, XK_bracketright, focusmon, {.i = -1 } },
- { MODKEY, XK_h, focusmon, {.i = +1 } },
- { MODKEY, XK_l, focusmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_bracketleft, tagmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_bracketright, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_h, tagmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_l, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_bracketleft, focusmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_bracketright, focusmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_h, focusmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_l, focusmon, {.i = -1 } },
- { MODKEY, XK_w, movemouse, {0} },
- { MODKEY|ShiftMask, XK_w, resizemouse, {0} },
- { MODKEY, XK_minus, setgaps, {.i = -1 } },
- { MODKEY, XK_equal, setgaps, {.i = +1 } },
- { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
- { MODKEY|ControlMask, XK_k, switchtag, { .ui = SWITCHTAG_UP | SWITCHTAG_VIEW } },
- { MODKEY|ControlMask, XK_j, switchtag, { .ui = SWITCHTAG_DOWN | SWITCHTAG_VIEW } },
- { MODKEY|ControlMask, XK_l, switchtag, { .ui = SWITCHTAG_RIGHT | SWITCHTAG_VIEW } },
- { MODKEY|ControlMask, XK_h, switchtag, { .ui = SWITCHTAG_LEFT | SWITCHTAG_VIEW } },
- { MODKEY|METAKEY, XK_k, switchtag, { .ui = SWITCHTAG_UP | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
- { MODKEY|METAKEY, XK_j, switchtag, { .ui = SWITCHTAG_DOWN | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
- { MODKEY|METAKEY, XK_l, switchtag, { .ui = SWITCHTAG_RIGHT | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
- { MODKEY|METAKEY, XK_h, switchtag, { .ui = SWITCHTAG_LEFT | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
- TAGKEYS( XK_1, 0)
- TAGKEYS( XK_2, 1)
- TAGKEYS( XK_3, 2)
- TAGKEYS( XK_4, 3)
- TAGKEYS( XK_5, 4)
- TAGKEYS( XK_6, 5)
- TAGKEYS( XK_7, 6)
- TAGKEYS( XK_8, 7)
- TAGKEYS( XK_9, 8)
- { MODKEY, XK_0, view, {.ui = ~0 } },
- { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
- { MODKEY|ShiftMask, XK_e, quit, {0} },
-};
-
-/* button definitions */
-/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
-static Button buttons[] = {
- /* click event mask button function argument */
- { ClkTagBar, MODKEY, Button1, tag, {0} },
- { ClkTagBar, MODKEY, Button3, toggletag, {0} },
- { ClkWinTitle, 0, Button2, zoom, {0} },
- { ClkStatusText, 0, Button2, spawn, {.v = term_cmd } },
- { ClkClientWin, MODKEY, Button1, movemouse, {0} },
- { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
- { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
- { ClkTagBar, 0, Button1, view, {0} },
- { ClkTagBar, 0, Button3, toggleview, {0} },
- { ClkTagBar, MODKEY, Button1, tag, {0} },
- { ClkTagBar, MODKEY, Button3, toggletag, {0} },
-};
-