summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwm/config.def.h26
-rw-r--r--st/config.def.h36
2 files changed, 31 insertions, 31 deletions
diff --git a/dwm/config.def.h b/dwm/config.def.h
index 43eff93..c2f2b91 100644
--- a/dwm/config.def.h
+++ b/dwm/config.def.h
@@ -9,7 +9,7 @@
#define TERMINAL "st"
#define TERMCLASS "St"
-/* appearance */
+/* Appearance */
static const double activeopacity = 1.0f; /* Window opacity when it's focused (0 <= opacity <= 1) */
static const double inactiveopacity = 1.0f; /* Window opacity when it's inactive (0 <= opacity <= 1) */
static const int allowkill = 1; /* allow killing clients by default? */
@@ -115,7 +115,7 @@ static Sp scratchpads[] = {
{"vimwikitodo", spcmd4},
};
-/* tagging */
+/* Tagging */
static const char *tags[] = { "", "", "󱔗", "", "", "", "", "", "󰭹" };
static const char *tagsalt[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static char *tagsel[][2] = {
@@ -145,6 +145,7 @@ static const Rule rules[] = {
* WM_NAME(STRING) = title
*/
/* class instance title tags mask allowkill focusopacity unfocusopacity isfloating isterminal noswallow monitor resizehints border width */
+ { TERMCLASS, TERMINAL, NULL, 1 << 0, 1, activeopacity, inactiveopacity, 0, 1, 0, -1, 1, -1 },
{ BROWSER, "Navigator", NULL, 1 << 1, 1, activeopacity, inactiveopacity, 0, 0, -1, -1, 1, -1 },
{ "libreoffice", "libreoffice", NULL, 1 << 2, 1, activeopacity, inactiveopacity, 0, 1, 0, -1, 1, -1 },
{ "mpv", "mpvk", NULL, 1 << 3, 1, activeopacity, inactiveopacity, 0, 1, -1, -1, 0, 0 },
@@ -159,12 +160,11 @@ static const Rule rules[] = {
{ TERMCLASS, "splf", NULL, SPTAG(1), 1, activeopacity, inactiveopacity, 1, 1, 0, -1, 1, -1 },
{ TERMCLASS, "spcalc", NULL, SPTAG(2), 1, activeopacity, inactiveopacity, 1, 1, 0, -1, 1, -1 },
{ TERMCLASS, "vimwikitodo", NULL, SPTAG(3), 1, activeopacity, inactiveopacity, 1, 1, 0, -1, 1, -1 },
- { TERMCLASS, TERMINAL, NULL, 0, 1, activeopacity, inactiveopacity, 0, 1, 0, -1, 1, -1 },
{ TERMCLASS, "floatterm", NULL, 0, 1, activeopacity, inactiveopacity, 1, 1, 0, -1, 1, 0 },
{ NULL, NULL, "Event Tester", 0, 1, activeopacity, inactiveopacity, 0, 0, 1, -1, 1, -1 }, /* xev */
};
-/* layout(s) */
+/* Layout(s) */
static float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static int nmaster = 1; /* number of clients in master area */
static int resizehints = 0; /* 1 means respect size hints in tiled resizals */
@@ -196,7 +196,7 @@ static const Layout layouts[] = {
{ "><>", NULL }, /* 15: no layout function means floating behavior */
};
-/* key definitions */
+/* Key definitions */
#define WINKEY Mod4Mask
#define WINMOD (WINKEY|ShiftMask)
#define WINMOD2 (WINKEY|ControlMask)
@@ -230,13 +230,13 @@ static const Layout layouts[] = {
&((Keychord){2, {{MOD, XK_BackSpace},{0, XK_z}}, ACTION##stack, {.i = 2 } }), \
&((Keychord){2, {{MOD, XK_BackSpace},{0, XK_x}}, ACTION##stack, {.i = -1 } }),
-/* helper for spawning shell commands in the pre dwm-5.0 fashion */
+/* Helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
-/* helper for launching gtk application */
+/* Helper for launching gtk application */
#define GTKCMD(cmd) { .v = (const char*[]){ "/usr/bin/gtk-launch", cmd, NULL } }
-/* commands */
+/* Commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { TERMINAL, NULL };
@@ -253,7 +253,7 @@ static const Arg tagexec[] = {
{ .v = (const char *[]){ "kakaotalk", NULL } } // 9
};
-/* gestures
+/* Gestures
* u means up
* d means down
* l means left
@@ -303,7 +303,7 @@ ResourcePref resources[] = {
};
static Keychord *keychords[] = {
- /* Num Keys Function argument */
+ /* num keys function argument */
// STACKKEYS
STACKKEYS( WINKEY, focus)
STACKKEYS( WINMOD, push)
@@ -570,7 +570,7 @@ static Keychord *keychords[] = {
&((Keychord){1, {{ULTRAMOD, XK_minus}}, spawn, SHCMD("monitorbright -dec 5; kill -42 $(pidof dwmblocks)") }),
&((Keychord){1, {{ULTRAMOD, XK_equal}}, spawn, SHCMD("monitorbright -inc 5; kill -42 $(pidof dwmblocks)") }),
&((Keychord){1, {{0, XK_Alt_R}}, spawn, SHCMD("fcitx5-remote -t && kill -44 $(pidof dwmblocks)") }),
- /* &((Keychord){1, {{WINMOD, XK_q}}, quit, {0} }), */
+ &((Keychord){1, {{EXTRAMOD, XK_q}}, quit, {0} }),
&((Keychord){1, {{ControlMask, XK_F5}}, quit, {1} }),
&((Keychord){1, {{EXTRAMOD, XK_F5}}, spawn, SHCMD("killall -q dwmblocks; setsid -f dwmblocks") }),
@@ -631,8 +631,8 @@ static Keychord *keychords[] = {
&((Keychord){3, {{WINKEY, XK_v},{0, XK_s},{0, XK_s}}, spawn, SHCMD(TERMINAL " -n suckless -e nvim ${XDG_SOURCES_HOME:-${HOME}/.local/src}/suckless/st/config.def.h") }),
};
-/* button definitions */
-/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
+/* Button definitions */
+/* Click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static const Button buttons[] = {
/* click event mask button function argument */
{ ClkClientWin, WINKEY, Button1, movemouse, {0} },
diff --git a/st/config.def.h b/st/config.def.h
index 7162f0f..3a349d3 100644
--- a/st/config.def.h
+++ b/st/config.def.h
@@ -2,7 +2,7 @@ char *externalpipe_sigusr1[] = {"/bin/sh", "-c", "externalpipe_buffer.sh st_stri
/* See LICENSE file for copyright and license details. */
/*
- * appearance
+ * Appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
@@ -17,7 +17,7 @@ static char *font2[] = {
"NotoColorEmoji:pixelsize=14:antialias=true:autohint=true",
};
-/* disable bold, italic and roman fonts globally */
+/* Disable bold, italic and roman fonts globally */
int disablebold = 0;
int disableitalic = 0;
int disableroman = 0;
@@ -34,11 +34,11 @@ static int borderpx = 2;
*/
static char *shell = "/bin/sh";
char *utmp = NULL;
-/* scroll program: to enable use a string like "scroll" */
+/* Scroll program: to enable use a string like "scroll" */
char *scroll = NULL;
char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400";
-/* identification sequence returned in DA and DECID */
+/* Identification sequence returned in DA and DECID */
char *vtiden = "\033[?6c";
/* Kerning / character bounding-box multipliers */
@@ -49,40 +49,40 @@ static short cxoffset = 0;
static short cyoffset = 0;
/*
- * word delimiter string
+ * Word delimiter string
*
* More advanced example: L" `'\"()[]{}"
*/
wchar_t *worddelimiters = L" `'\"()[]{}";
-/* selection timeouts (in milliseconds) */
+/* Selection timeouts (in milliseconds) */
static unsigned int doubleclicktimeout = 300;
static unsigned int tripleclicktimeout = 600;
-/* alt screens */
+/* Alt screens */
int allowaltscreen = 1;
-/* allow certain non-interactive (insecure) window operations such as:
+/* Allow certain non-interactive (insecure) window operations such as:
setting the clipboard text */
int allowwindowops = 0;
/*
- * draw latency range in ms - from new content/keypress/etc until drawing.
- * within this range, st draws when content stops arriving (idle). mostly it's
+ * Draw latency range in ms - from new content/keypress/etc until drawing.
+ * Within this range, st draws when content stops arriving (idle). Mostly it's
* near minlatency, but it waits longer for slow updates to avoid partial draw.
- * low minlatency will tear/flicker more, as it can "detect" idle too early.
+ * Low minlatency will tear/flicker more, as it can "detect" idle too early.
*/
static double minlatency = 8;
static double maxlatency = 33;
/*
- * blinking timeout (set to 0 to disable blinking) for the terminal blinking
+ * Blinking timeout (set to 0 to disable blinking) for the terminal blinking
* attribute.
*/
static unsigned int blinktimeout = 800;
/*
- * thickness of underline and bar cursors
+ * Thickness of underline and bar cursors
*/
static unsigned int cursorthickness = 2;
@@ -95,20 +95,20 @@ static unsigned int cursorthickness = 2;
const int boxdraw = 1;
const int boxdraw_bold = 0;
-/* braille (U28XX): 1: render as adjacent "pixels", 0: use font */
+/* Braille (U28XX): 1: render as adjacent "pixels", 0: use font */
const int boxdraw_braille = 0;
/*
- * bell volume. It must be a value between -100 and 100. Use 0 for disabling
+ * Bell volume. It must be a value between -100 and 100. Use 0 for disabling
* it
*/
static int bellvolume = 0;
-/* default TERM value */
+/* Default TERM value */
char *termname = "st-256color";
/*
- * spaces per tab
+ * Spaces per tab
*
* When you are changing this value, don't forget to adapt the »it« value in
* the st.info and appropriately install the st.info in the environment where
@@ -124,7 +124,7 @@ char *termname = "st-256color";
*/
unsigned int tabspaces = 8;
-/* bg opacity */
+/* Bg opacity */
float alpha = 0.8, alphaUnfocused = 0.85;
/* Background opacity */