aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h60
1 files changed, 33 insertions, 27 deletions
diff --git a/config.h b/config.h
index 08c8f92..99a35e5 100644
--- a/config.h
+++ b/config.h
@@ -1,21 +1,21 @@
/* See LICENSE file for copyright and license details. */
/* Appearance. */
-static unsigned int borderpx = 5; /* border pixel of windows */
+static unsigned int borderpx = 8; /* border pixel of windows */
const static unsigned int snap= 48; /* snap pixel */
-static unsigned int gappx = 15;
+static unsigned int gappx = 32;
static const int swallowfloating = 1; /* Swallow floating windows by default. */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static int sidepad = 15;
-static int vertpad = 15;
+static int sidepad = 0;
+static int vertpad = 0;
static char font[] = "Hack Nerd Font 12";
static char dmenufont[] = "Hack Nerd Font:size=12";
static char norm_bg_col[] = "#282828";
-static char norm_bor_col[] = "#282828";
+static char norm_bor_col[] = "#928374";
static char norm_fg_col[] = "#ebdbb2";
static char sel_bg_col[] = "#83a598";
@@ -67,16 +67,17 @@ ResourcePref resources[] = {
/* Tags. */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+/* Window rules. */
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
- /* class instance title tags mask isfloating isterminal noswallow monitor */
- { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 },
- { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1, -1 },
- { "St", NULL, NULL, 0, 0, 1, 0, -1 },
- { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
+ /* Class, instance, title, tags mask, isfloating, isterminal, noswallow, monitor. */
+ { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev. */
+ { "dolphin", NULL, NULL, 0, 1, 0, 0, -1 }, /* Dolphin. */
+ { "firefox", NULL, "Picture-in-Picture", 0, 1, 0, 0, -1 }, /* Firefox PIP. */
+ { "Alacritty", NULL, NULL, 0, 0, 1, 0, -1 }, /* Alacritty. */
};
/* Key definitions. */
@@ -92,17 +93,18 @@ static const Rule rules[] = {
/* Commands. */
-#define SCRIPTS "/home/c/.local/bin/"
+/* Scripts directory. */
+#define SCR "/home/c/.local/bin/"
static char dmenumon[2] = "0"; /* Component of dmenucmd, manipulated in spawn(). */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL };
-static const char *termcmd[] = { SCRIPTS "launchers/term.sh", NULL };
-static const char *webcmd[] = { SCRIPTS "launchers/web.sh", NULL };
-static const char *passcmd[] = { SCRIPTS "/sbin/passmenu", NULL };
-static const char *bmkscmd[] = { SCRIPTS "bmks", NULL };
-static const char *bmkaddcmd[]= { SCRIPTS "bmks", "dadd", NULL };
+static const char *termcmd[] = { SCR "launchers/term.sh", NULL };
+static const char *webcmd[] = { SCR "launchers/web.sh", NULL };
+static const char *passcmd[] = { SCR "/sbin/passmenu", NULL };
+static const char *bmkscmd[] = { SCR "bmks", NULL };
+static const char *bmkaddcmd[]= { SCR "bmks", "dadd", NULL };
-static const char *papercmd[] = { SCRIPTS "wallpaper.sh", NULL };
+static const char *papercmd[] = { SCR "wallpaper.sh", NULL };
#include "movestack.c"
@@ -122,12 +124,14 @@ static const Key keys[] = {
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
- { MODKEY, XK_x, incnmaster, {.i = +1 } }, /* Increase the number of master windows. */
- { MODKEY, XK_z, incnmaster, {.i = -1 } }, /* Decrease the number of master windows. */
+ { MODKEY, XK_z, incnmaster, {.i = +1 } }, /* Increase the number of master windows. */
+ { MODKEY|ShiftMask, XK_z, incnmaster, {.i = -1 } }, /* Decrease the number of master windows. */
{ MODKEY, XK_h, setmfact, {.f = -0.05} }, /* Increase master/stack ratio. */
{ MODKEY, XK_l, setmfact, {.f = +0.05} }, /* Decrease master/stack ratio. */
{ MODKEY, XK_q, killclient, {0} }, /* Kill active window. */
+ { MODKEY, XK_x, movecenter, {0} }, /* Move window to center of screen. */
+ /* Floating window navigation. */
{ MODKEY, XK_Down, moveresize, {.v = (int []){ 0, snap, 0, 0 }} },
{ MODKEY, XK_Up, moveresize, {.v = (int []){ 0, -snap, 0, 0 }} },
{ MODKEY, XK_Right, moveresize, {.v = (int []){ snap, 0, 0, 0 }} },
@@ -173,20 +177,22 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_q, quit, {0} }, /* Quit dwm. */
/* Function keys. */
- { 0, 0x1008ff13, spawn, SHCMD("/home/c/.local/bin/setvol.sh i") }, /* Increase volume. */
- { 0, 0x1008ff11, spawn, SHCMD("/home/c/.local/bin/setvol.sh d") }, /* Decrease volume. */
- { 0, 0x1008ff12, spawn, SHCMD("/home/c/.local/bin/setvol.sh m") }, /* Toggle mute. */
+ { 0, 0x1008ff13, spawn, SHCMD(SCR "setvol.sh i") }, /* Increase volume. */
+ { 0, 0x1008ff11, spawn, SHCMD(SCR "setvol.sh d") }, /* Decrease volume. */
+ { 0, 0x1008ff12, spawn, SHCMD(SCR "setvol.sh m") }, /* Toggle mute. */
+ { 0, 0x1008ff02, spawn, SHCMD(SCR "setmon.sh i") }, /* Increase monitor brightness. */
+ { 0, 0x1008ff03, spawn, SHCMD(SCR "setmon.sh d") }, /* Decrease monitor brightness. */
};
/* Button definitions. */
/* A click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin. */
static const Button buttons[] = {
/* Click, 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} },
+ { 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} },