aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h202
1 files changed, 52 insertions, 150 deletions
diff --git a/config.h b/config.h
index 99466a2..c392834 100644
--- a/config.h
+++ b/config.h
@@ -1,29 +1,20 @@
-
-
-/* Constants */
-#define TERMINAL "st"
-#define TERMCLASS "st"
+/* See LICENSE file for copyright and license details. */
/* appearance */
static const unsigned int borderpx = 3; /* border pixel of windows */
+static const unsigned int gappx = 5; /* gaps between windows */
static const unsigned int snap = 32; /* snap pixel */
-static const unsigned int gappih = 5; /* horiz inner gap between windows */
-static const unsigned int gappiv = 5; /* vert inner gap between windows */
-static const unsigned int gappoh = 5; /* horiz outer gap between windows and screen edge */
-static const unsigned int gappov = 5; /* vert outer gap between windows and screen edge */
-static int smartgaps = 0; /* 1 means no outer gap when there is only one window */
+static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const int user_bh = 27; /* 0 means that dwm will calculate bar height, >= 1 means dwm will user_bh as bar height */
-static const int vertpad = 10; /* vertical padding of bar */
-static const int sidepad = 10; /* horizontal padding of bar */
-static const char *fonts[] = { "JetBrains Mono:size=10", "JoyPixels:pixelsize=10:antialias=true:autohint=true" };
-static char normbgcolor[] = "#080808";
-static char normbordercolor[] = "#1a1a1a";
-static char normfgcolor[] = "#e5e5e5";
-static char selfgcolor[] = "#e5e5e5";
-static char selbordercolor[] = "#fc8617";
-static char selbgcolor[] = "#fc8617";
+static const char *fonts[] = { "JetBrains Mono:size=11", "JoyPixels:pixelsize=11:antialias=true:autohint=true"};
+static const char dmenufont[] = "JetBrains Mono:size=11";
+static char normbgcolor[] = "#222222";
+static char normbordercolor[] = "#444444";
+static char normfgcolor[] = "#bbbbbb";
+static char selfgcolor[] = "#eeeeee";
+static char selbordercolor[] = "#005577";
+static char selbgcolor[] = "#005577";
static char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor },
@@ -31,57 +22,36 @@ static char *colors[][3] = {
};
/* tagging */
-static const char *tags[] = { "", "", "", "", "", "", "", "", "" };
+static const char *tags[] = { "", "", "", "", "", "", "", "", "" };
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
- /* class instance title tags mask isfloating monitor */
- { "Deadbeef", NULL, NULL, 0, 1, -1 },
- { "Gcolor3", NULL, NULL, 0, 1, -1 },
- { "Pavucontrol", NULL, NULL, 0, 1, -1 },
- { "Sxiv", NULL, NULL, 0, 1, -1 },
- { "Pcmanfm", NULL, NULL, 0, 1, -1 },
- { "Zathura", NULL, NULL, 0, 1, -1 },
- { "blueman-manager", NULL, NULL, 0, 1, -1 },
- { "cpomosai", NULL, NULL, 0, 1, -1 },
- { "packagesupgrade", NULL, NULL, 0, 1, -1 },
- { "weatherreport", NULL, NULL, 0, 0, -1 },
+ /* class instance title tags mask isfloating isterminal noswallow monitor */
+ { "TelegramDesktop", NULL, NULL, 0, 1, 0, 0, -1 },
+ { "obs", NULL, NULL, 0, 1, 0, 0, -1 },
+ { "Lutris", NULL, NULL, 0, 1, 0, 0, -1 },
+ { "firefox", NULL, NULL, 1 << 2, 0, 0, -1, -1 },
+ { "St", NULL, NULL, 0, 0, 1, 0, -1 },
+ { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
};
/* layout(s) */
-static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */
+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 = 0; /* 1 means respect size hints in tiled resizals */
-static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
-
-#define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */
-#include "vanitygaps.c"
+static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const Layout layouts[] = {
-/* symbol arrange function */
-{ "[F]", NULL }, /* 0 first entry is default */
-{ "[T]", tile }, /* 1 */
-{ "[M]", monocle }, /* 2 */
-{ "[S]", spiral }, /* 3 */
-{ "[DW]", dwindle }, /* 4 */
-{ "[D]", deck }, /* 5 */
-{ "[BS]", bstack }, /* 6 */
-{ "[BSH]", bstackhoriz }, /* 7 */
-{ "[G]", grid }, /* 8 */
-{ "[RG]", nrowgrid }, /* 9 */
-{ "[HG]", horizgrid }, /* 10 */
-{ "[GG]", gaplessgrid }, /* 11 */
-{ "[C]", centeredmaster }, /* 12 */
-{ "[CF]", centeredfloatingmaster }, /* 13 */
-{ NULL, NULL }, /* 14 */
+ /* symbol arrange function */
+ { "[]=", tile }, /* first entry is default */
+ { "><>", NULL }, /* no layout function means floating behavior */
+ { "[M]", monocle },
};
/* key definitions */
#define MODKEY Mod4Mask
-#define PrintScreenDWM 0x0000ff61
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
@@ -92,74 +62,39 @@ static const Layout layouts[] = {
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
-static const char *dmenucmd[] = { "dmenu_run", NULL };
-static const char *cmdprintscreen[] = { "scrot", "-d3", "/home/genos/Pictures/%Y-%m-%d-%s_$wx$h.jpg", NULL };
+static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
+static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont};
+static const char *termcmd[] = { "st", NULL };
-/*static const char *flavorsel[] = { "flavorsel", NULL };*/
-static const char *emojicmd[] = { "emojidmenu", NULL };
-static const char *chrscmd[] = { "chrs", NULL };
-static const char *termcmd[] = { "st", NULL };
-static const char *webcmd[] = { "firefox", NULL };
-static const char *filescmd[] = { "pcmanfm", NULL };
-static const char *powermenu[] = { "powermenu", NULL };
-static const char *shotmenu[] = { "shotmenu", NULL };
-static const char *sysinfo[] = { "sysinfo", NULL };
-static const char *bgset[] = { "bgset", NULL };
-static const char *disset[] = { "disset", NULL };
-static const char *disfix[] = { "disfix", NULL };
-static const char *audiocontrolcmd[] = { "pavucontrol", NULL };
-
-#include <X11/XF86keysym.h>
static Key keys[] = {
/* modifier key function argument */
- { MODKEY, XK_d, spawn, {.v = dmenucmd } },
- { MODKEY, XK_Return, spawn, {.v = termcmd } },
- { MODKEY, XK_w, spawn, {.v = webcmd } },
- { MODKEY, XK_e, spawn, {.v = emojicmd } },
- { MODKEY|ShiftMask, XK_f, spawn, {.v = filescmd } },
- { MODKEY|ShiftMask, XK_m, spawn, {.v = audiocontrolcmd } },
- { MODKEY, XK_0, spawn, {.v = powermenu } },
- { MODKEY|ShiftMask, XK_w, spawn, {.v = bgset } },
- { MODKEY|Mod1Mask, XK_w, spawn, {.v = chrscmd } },
- { MODKEY|ShiftMask, XK_d, spawn, {.v = disset } },
- { MODKEY|Mod1Mask, XK_d, spawn, {.v = disfix } },
- { MODKEY, XK_F2, spawn, SHCMD("groff -mom $HOME/.local/share/dwm/gzdots.mom -T pdf | zathura -") },
- { MODKEY|ShiftMask, XK_t, spawn, SHCMD(TERMINAL " -c cpomosai -e cpomosai") },
- { MODKEY, XK_b, spawn, {.v = sysinfo } },
- { MODKEY|ShiftMask, XK_b, togglebar, {0} },
- { MODKEY, XK_j, focusstack, {.i = +1 } },
+ { MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY|ControlMask, XK_i, incnmaster, {.i = +1 } },
- { MODKEY|ControlMask, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
- { MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY|ShiftMask, XK_Return, zoom, {0} },
- { MODKEY, XK_z, incrgaps, {.i = +3 } },
- { MODKEY, XK_x, incrgaps, {.i = -3 } },
- { MODKEY, XK_a, togglegaps, {0} },
- { MODKEY|ShiftMask, XK_a, defaultgaps, {0} },
+ { MODKEY, XK_g, togglebar, {0} },
+ { MODKEY, XK_f, zoom, {0} },
+ { MODKEY, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY, XK_s, incnmaster, {.i = +1 } },
+ { MODKEY, XK_q, killclient, {0} },
+ { MODKEY, XK_w, setlayout, {.v = &layouts[0]} },
+ { MODKEY, XK_e, setlayout, {.v = &layouts[1]} },
+ { MODKEY, XK_r, setlayout, {.v = &layouts[2]} },
+ { MODKEY|ShiftMask, XK_r, togglefloating, {0} },
+ { MODKEY, XK_t, setlayout, {0} },
+ { MODKEY, XK_space, spawn, {.v = dmenucmd } },
+ { MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_Tab, view, {0} },
- { MODKEY, XK_q, killclient, {0} },
- { MODKEY, XK_t, setlayout, {.v = &layouts[1]} },
- { MODKEY, XK_m, setlayout, {.v = &layouts[5]} },
- { MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[2]} },
- { MODKEY, XK_s, setlayout, {.v = &layouts[3]} },
- { MODKEY, XK_c, setlayout, {.v = &layouts[12]} },
- { MODKEY, XK_space, setlayout, {.v = &layouts[13]} },
- { MODKEY|ControlMask, XK_comma, cyclelayout, {.i = -1 } },
- { MODKEY|ControlMask, XK_period, cyclelayout, {.i = +1 } },
- { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
- { MODKEY, XK_f, togglefullscr, {0} },
- { MODKEY|ControlMask, XK_0, view, {.ui = ~0 } },
+ { MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
- { MODKEY, XK_Left, focusmon, {.i = -1 } },
- { MODKEY, XK_Right, focusmon, {.i = +1 } },
- { MODKEY|ShiftMask, XK_Left, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_Right, tagmon, {.i = +1 } },
- { MODKEY, XK_F1, xrdb, {.v = NULL } },
- { MODKEY|ShiftMask, XK_s, spawn, {.v = cmdprintscreen } },
-
- /*{ MODKEY|Mod2Mask, XK_f, spawn, {.v = flavorsel } },*/
+ { MODKEY, XK_comma, focusmon, {.i = -1 } },
+ { MODKEY, XK_period, focusmon, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
+ { MODKEY, XK_minus, setgaps, {.i = -1 } },
+ { MODKEY, XK_equal, setgaps, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } },
+ { MODKEY, XK_F5, xrdb, {.v = NULL } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
@@ -169,42 +104,9 @@ static Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
- { 0, XK_Print, spawn, SHCMD("scrot ~/Pictures/allmon-$(date +%H:%M:%S).png --quality 100 --freeze") },
- { MODKEY, XK_Print, spawn, {.v = shotmenu } },
- { 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t") },
- { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 5") },
- { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 5") },
- { MODKEY, XK_F10, spawn, SHCMD("mpc volume 0") },
- { MODKEY, XK_F11, spawn, SHCMD("mpc volume -5") },
- { MODKEY, XK_F12, spawn, SHCMD("mpc volume +5") },
- { 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev && covernotify") },
- { 0, XF86XK_AudioNext, spawn, SHCMD("mpc next && covernotify") },
- { 0, XF86XK_AudioPlay, spawn, SHCMD("mpc toggle && covernotify") },
- { 0, XF86XK_AudioStop, spawn, SHCMD("mpc stop && covernotify") },
- { MODKEY, XK_F5, spawn, SHCMD(TERMINAL " -e ncmpcpp") },
- { 0, XF86XK_Calculator, spawn, SHCMD(TERMINAL " -e bc -l") },
- { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 15") },
- { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 15") },
- { MODKEY|ShiftMask, XK_F4, quit, {0} },
-
- /* { MODKEY|Mod4Mask, XK_h, incrgaps, {.i = +1 } }, */
- /* { MODKEY|Mod4Mask, XK_l, incrgaps, {.i = -1 } }, */
- /* { MODKEY|Mod4Mask|ShiftMask, XK_h, incrogaps, {.i = +1 } }, */
- /* { MODKEY|Mod4Mask|ShiftMask, XK_l, incrogaps, {.i = -1 } }, */
- /* { MODKEY|Mod4Mask|ControlMask, XK_h, incrigaps, {.i = +1 } }, */
- /* { MODKEY|Mod4Mask|ControlMask, XK_l, incrigaps, {.i = -1 } }, */
- /* { MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} }, */
- /* { MODKEY, XK_y, incrihgaps, {.i = +1 } }, */
- /* { MODKEY, XK_o, incrihgaps, {.i = -1 } }, */
- /* { MODKEY|ControlMask, XK_y, incrivgaps, {.i = +1 } }, */
- /* { MODKEY|ControlMask, XK_o, incrivgaps, {.i = -1 } }, */
- /* { MODKEY|Mod4Mask, XK_y, incrohgaps, {.i = +1 } }, */
- /* { MODKEY|Mod4Mask, XK_o, incrohgaps, {.i = -1 } }, */
- /* { MODKEY|ShiftMask, XK_y, incrovgaps, {.i = +1 } }, */
- /* { MODKEY|ShiftMask, XK_o, incrovgaps, {.i = -1 } }, */
+ { MODKEY|ShiftMask, XK_q, quit, {0} },
};
-
/* button definitions */
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {