commit e8e7708ca72b3b0cc4929d60af01f80075b82303
parent 7a5ff93150b84afc2b7c5cdb4205f521aef722fb
Author: Matsuda Kenji <contact2655@matsudakenji.xyz>
Date: Mon, 2 May 2022 16:12:38 +0900
change dwm config
Diffstat:
1 file changed, 38 insertions(+), 33 deletions(-)
diff --git a/suckless/dwm/config.diff b/suckless/dwm/config.diff
@@ -1,73 +1,78 @@
---- config.h 2021-08-05 10:46:13.691533000 +0900
-+++ config.def.h 2021-06-18 14:17:53.613576000 +0900
-@@ -1,7 +1,7 @@
+--- config.def.h Thu Nov 18 08:37:04 2021
++++ config.h Mon May 2 16:06:58 2022
+@@ -1,25 +1,25 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
--static const unsigned int borderpx = 0; /* border pixel of windows */
-+static const unsigned int borderpx = 1; /* border pixel of windows */
+-static const unsigned int borderpx = 1; /* border pixel of windows */
++static const unsigned int borderpx = 0; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-@@ -11,15 +11,15 @@
+-static const char *fonts[] = { "monospace:size=10" };
+-static const char dmenufont[] = "monospace:size=10";
++static const char *fonts[] = { "Liberation Mono:size=7", "Font Awesome 5 Free:size=10", "Font Awesome 5 Brands:size=10", "Noto Color Emoji:size=7", "Noto Sans CJK JP:size=7" };
++static const char dmenufont[] = "monospace:size=8";
+ 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_highlight[] = "#324d45";
-+static const char col_cyan[] = "#005577";
+-static const char col_cyan[] = "#005577";
++static const char col_highlight[] = "#324d45";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
-- [SchemeSel] = { col_gray4, col_highlight, col_highlight },
-+ [SchemeSel] = { col_gray4, col_cyan, col_cyan },
+- [SchemeSel] = { col_gray4, col_cyan, col_cyan },
++ [SchemeSel] = { col_gray4, col_highlight, col_highlight },
};
/* tagging */
--static const char *tags[] = { "1", "2", "3"};
-+static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+-static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
++static const char *tags[] = { "1", "2", "3"};
static const Rule rules[] = {
/* xprop(1):
-@@ -44,7 +44,7 @@
+@@ -45,7 +45,7 @@
};
/* key definitions */
--#define MODKEY Mod4Mask
-+#define MODKEY Mod1Mask
+-#define MODKEY Mod1Mask
++#define MODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
-@@ -56,19 +56,13 @@
+@@ -57,13 +57,20 @@
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
--static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_highlight, "-sf", col_gray4, NULL };
--static const char *termcmd[] = { "$TERMINAL", NULL };
-+static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
-+static const char *termcmd[] = { "st", NULL };
+-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
+-static const char *termcmd[] = { "st", NULL };
++/*static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_highlight, "-sf", col_gray4, NULL };*/
++static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_highlight, "-sf", col_gray4, NULL };
++static const char *termcmd[] = { "$TERMINAL", NULL };
--#include <X11/XF86keysym.h>
--
++#include <X11/XF86keysym.h>
++
static Key keys[] = {
/* modifier key function argument */
-- { MODKEY|ShiftMask, XK_b, spawn, SHCMD("$BROWSER") },
-- { MODKEY|ShiftMask, XK_s, spawn, SHCMD("$SURF") },
-- { MODKEY, XK_n, spawn, SHCMD("jinput") },
++ { MODKEY|ShiftMask, XK_b, spawn, SHCMD("$BROWSER") },
++ { MODKEY|ShiftMask, XK_s, spawn, SHCMD("$SURF") },
++ { MODKEY, XK_n, spawn, SHCMD("jinput") },
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
-- /*{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },*/
-- { MODKEY|ShiftMask, XK_Return, spawn, SHCMD("$TERMINAL") },
-+ { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
+- { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
++ /*{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },*/
++ { MODKEY|ShiftMask, XK_Return, spawn, SHCMD("$TERMINAL") },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
-@@ -100,10 +94,6 @@
+@@ -95,6 +102,10 @@
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
--
--
-- { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("mixer vol +3 >/dev/null; kill -75 $(pidof dwmblocks)") },
-- { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("mixer vol -3 >/dev/null; kill -75 $(pidof dwmblocks)") },
++
++
++ { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("mixer vol +3 >/dev/null; kill -75 $(pidof dwmblocks)") },
++ { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("mixer vol -3 >/dev/null; kill -75 $(pidof dwmblocks)") },
};
/* button definitions */