qutebrowser: enable toggling dark mode during runtime

This commit is contained in:
lelgenio 2023-04-13 15:28:20 -03:00
parent 62bd9e6676
commit 72e4a8f932
2 changed files with 3 additions and 1 deletions

View file

@ -162,7 +162,7 @@ in
bg = color.bg; bg = color.bg;
preferred_color_scheme = "dark"; preferred_color_scheme = "dark";
darkmode = { darkmode = {
enabled = true; enabled = false;
threshold = { threshold = {
text = 150; text = 150;
background = 205; background = 205;

View file

@ -42,6 +42,8 @@ in
"<Ctrl-${lib.toLower key.tabR}>" = "tree-tab-demote"; "<Ctrl-${lib.toLower key.tabR}>" = "tree-tab-demote";
"co" = "tab-only --pinned keep"; "co" = "tab-only --pinned keep";
"K" = "jseval --world main if (DarkReader.isEnabled()) {DarkReader.disable()} else {DarkReader.enable()}";
}; };
insert = { insert = {
# quit insert mode # quit insert mode