summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2022-12-16 17:09:21 +0100
committeryuzu-eva <stevenhu@web.de>2022-12-16 17:09:21 +0100
commitcb8626410c58cfce2289f4891556f13e2e5ffa4f (patch)
tree61fbe1db92c0410c19c9886d514321294687a74f /config.h
parentf8874b0a788dc169263742f091d3006e03a2b282 (diff)
added changealpha function
Diffstat (limited to 'config.h')
-rw-r--r--config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.h b/config.h
index 81ad355..2967abf 100644
--- a/config.h
+++ b/config.h
@@ -97,7 +97,8 @@ unsigned int tabspaces = 4;
/* bg opacity */
float alpha = 0.9;
-float alphaUnfocused = 0.9;
+float alphaOffset = 0.0;
+float alphaUnfocused;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
@@ -213,6 +214,8 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
+ { MODKEY, XK_s, changealpha, {.f = -0.05} },
+ { MODKEY, XK_a, changealpha, {.f = +0.05} },
{ MODKEY, XK_o, externalpipe, {.v = openurlcmd } },
{ MODKEY, XK_c, externalpipe, {.v = copyurlcmd } },
};