diff options
author | Quentin Rameau <quinq@fifth.space> | 2022-04-10 16:35:24 +0200 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2022-04-10 16:35:24 +0200 |
commit | 1f5b8f3bd1f37d4d3dc45d21285f34ef4752dbaa (patch) | |
tree | a04ef97de6f30054996f2ae8a4404d782b1200d8 /config.def.h | |
parent | 11dca18a2d148e5a6463aba783567a3815424963 (diff) |
Add dark mode toggle
This sets dark gtk theme variant,
which should make webkit2gtk use dark css variant
from websites that provide it.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 1355ba3..93cfeeb 100644 --- a/config.def.h +++ b/config.def.h @@ -20,6 +20,7 @@ static Parameter defconfig[ParameterLast] = { [Certificate] = { { .i = 0 }, }, [CaretBrowsing] = { { .i = 0 }, }, [CookiePolicies] = { { .v = "@Aa" }, }, + [DarkMode] = { { .i = 0 }, }, [DefaultCharset] = { { .v = "UTF-8" }, }, [DiskCache] = { { .i = 1 }, }, [DNSPrefetch] = { { .i = 0 }, }, @@ -179,6 +180,7 @@ static Key keys[] = { { MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_t, toggle, { .i = StrictTLS } }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_d, toggle, { .i = DarkMode } }, }; /* button definitions */ |