summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-01-17 19:45:32 -0500
committerMatt Hunter <m@lfurio.us>2026-02-06 00:28:50 -0500
commite4097a69ab3d3e6bf9112a849ba95efdeff428c6 (patch)
treeff7b25a782e4049ec80fd99f14f6df4f60e291f0 /config.def.h
parent42de44ca7eca9bb3fa9f0efc2a66e53177ff969d (diff)
downloadst-e4097a69ab3d3e6bf9112a849ba95efdeff428c6.tar.gz
st-e4097a69ab3d3e6bf9112a849ba95efdeff428c6.zip
patch: alpha
This patch allows users to change the opacity of the background. Note that you need an X composite manager (e.g. compton, xcompmgr) to make this patch effective. The alpha value affects the default background only. The color designated by 'defaultbg' should not be used elsewhere. Embedding might fail after applying this patch.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index b962afb..adfcb77 100644
--- a/config.def.h
+++ b/config.def.h
@@ -93,6 +93,9 @@ char *termname = "st-256color";
*/
unsigned int tabspaces = 8;
+/* bg opacity */
+float alpha = 0.8;
+
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
/* 8 normal colors */