summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorJake Koroman <jake@jakekoroman.com>2025-11-04 20:33:32 -0500
committerJake Koroman <jake@jakekoroman.com>2025-11-04 20:33:32 -0500
commit05871c1a5f0d899794d6215c393e96fd592a42d8 (patch)
treeb1a84fba4f9ee7d2141791da13d875b8026eb97e /config.def.h
parentd63f7119a4bd42d37b8ce7a2a6457b139af5c23d (diff)
x.c: make opacity toggleable.HEADmaster
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index fe266e1..79c16b6 100644
--- a/config.def.h
+++ b/config.def.h
@@ -94,7 +94,8 @@ char *termname = "st-256color";
unsigned int tabspaces = 8;
/* bg opacity */
-float alpha = 0.8;
+#define DEFAULT_ALPHA 0.8f
+float alpha = DEFAULT_ALPHA;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
@@ -202,6 +203,7 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} },
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
+ { TERMMOD, XK_T, togglealpha, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
};