diff options
Diffstat (limited to 'dwm-6.2/config.h')
| -rw-r--r-- | dwm-6.2/config.h | 163 |
1 files changed, 0 insertions, 163 deletions
diff --git a/dwm-6.2/config.h b/dwm-6.2/config.h deleted file mode 100644 index f86a868..0000000 --- a/dwm-6.2/config.h +++ /dev/null @@ -1,163 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -/* appearance */ -static const unsigned int borderpx = 2; /* border pixel of windows */ -static const unsigned int gappx = 3; /* gaps between windows */ -static const unsigned int snap = 16; /* snap pixel */ -static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ -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 = 1; /* 0 means no bar */ -static const int topbar = 0; /* 0 means bottom bar */ -static const char *fonts[] = { "BmPlus IBM VGA 9x16:size=12" }; -static const char col_gray1[] = "#000000"; -static const char col_gray2[] = "#444444"; -static const char col_gray3[] = "#bbbbbb"; -static const char col_gray4[] = "#eeeeee"; -static const char col_orang[] = "dark orange"; // "#ED9121"; -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_orang, col_gray2, col_orang }, -}; - -/* tagging */ -static const char *tags[] = { "F", "U", "H", ".", "V", "L", "O", "M" }; - -static const Rule rules[] = { - /* xprop(1): - * WM_CLASS(STRING) = instance, class - * WM_NAME(STRING) = title - */ - /* class instance title tags mask isfloating monitor */ - { NULL, NULL, NULL, 0, False, -1} -}; - -/* layout(s) */ -static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ -static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ - -static const int lpm[] = { - /* Index of preferred layout], if LENGTH(lpm)<#monitors -> default layout */ - 2, 0 -}; - -static const Layout layouts[] = { - /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "[M]", monocle }, - { "===", bstackhoriz }, - { "TTT", bstack }, - { "><>", NULL }, /* no layout function means floating behavior */ -}; - -/* key definitions */ -#define MODKEY Mod4Mask -#define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.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 const char *termcmd[] = { "alacritty", NULL }; -static const char *menucmd[] = { "run", NULL }; -static const char *now_playing[] = { "now_playing", NULL }; -static const char *albumbler[] = { "albumbler.py", NULL }; -static const char *mpc_toggle[] = { "mpc", "toggle", NULL }; -static const char *mpc_next[] = { "mpc", "next", NULL }; -static const char *mpc_prev[] = { "mpc", "prev", NULL }; -static const char *mpc_stop[] = { "mpc", "stop", NULL }; -static const char *lock[] = { "lock", NULL }; -static const char *flameshot[] = { "flameshot", "gui", NULL }; - -#define XF86AudioLowerVolume 0x1008ff11 -#define XF86AudioMute 0x1008ff12 -#define XF86AudioRaiseVolume 0x1008ff13 -#define XF86AudioPlay 0x1008ff14 -#define XF86AudioStop 0x1008ff15 -#define XF86AudioPrev 0x1008ff16 -#define XF86AudioNext 0x1008ff17 - -static const char *vol_dn[] = { "pactl", "set-sink-volume", "0", "-5%", NULL }; -static const char *vol_up[] = { "pactl", "set-sink-volume", "0", "+5%", NULL }; -static const char *vol_mt[] = { "pactl", "set-sink-mute", "0", "toggle", NULL }; - -static Key keys[] = { - /* modifier key function argument */ - - // Commands - { MODKEY, XK_t, spawn, {.v = termcmd} }, - { MODKEY, XK_d, spawn, {.v = menucmd} }, - { MODKEY|ShiftMask, XK_space, spawn, {.v = albumbler } }, - { MODKEY|ShiftMask|ControlMask, XK_space, spawn, {.v = now_playing } }, - { MODKEY, XK_x, spawn, {.v = lock } }, - { MODKEY, XK_p, spawn, {.v = flameshot } }, - { MODKEY|ShiftMask|ControlMask, XK_q, quit, {0} }, - - // Multimedia - { 0, XF86AudioLowerVolume, spawn, {.v = vol_dn } }, - { 0, XF86AudioMute, spawn, {.v = vol_mt } }, - { 0, XF86AudioRaiseVolume, spawn, {.v = vol_up } }, - { 0, XF86AudioPlay, spawn, {.v = mpc_toggle } }, - { 0, XF86AudioStop, spawn, {.v = mpc_stop } }, - { 0, XF86AudioPrev, spawn, {.v = mpc_prev } }, - { 0, XF86AudioNext, spawn, {.v = mpc_next } }, - - // Windows - { MODKEY, XK_c, focusstack, {.i = +1 } }, - { MODKEY, XK_i, focusstack, {.i = -1 } }, - { MODKEY|ShiftMask, XK_c, incnmaster, {.i = +1 } }, - { MODKEY|ShiftMask, XK_i, incnmaster, {.i = -1 } }, - { MODKEY, XK_e, setmfact, {.f = -0.05} }, - { MODKEY, XK_n, setmfact, {.f = +0.05} }, - { MODKEY, XK_Return, zoom, {0} }, - { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ShiftMask, XK_k, killclient, {0} }, - - // Layout - { MODKEY, XK_s, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_r, setlayout, {.v = &layouts[1]} }, - { MODKEY, XK_a, setlayout, {.v = &layouts[2]} }, - { MODKEY|ShiftMask, XK_s, setlayout, {.v = &layouts[3]} }, - { MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[4]} }, - { MODKEY|ShiftMask, XK_a, togglefloating, {0} }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_b, focusmon, {.i = +1 } }, - - // Tags - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_b, tagmon, {.i = +1 } }, - TAGKEYS( XK_f, 0) - TAGKEYS( XK_u, 1) - TAGKEYS( XK_h, 2) - TAGKEYS( XK_period, 3) - TAGKEYS( XK_v, 4) - TAGKEYS( XK_l, 5) - TAGKEYS( XK_o, 6) - TAGKEYS( XK_m, 7) -}; - -/* button definitions */ -/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { - /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { 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} }, -}; |
