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;
preferred_color_scheme = "dark";
darkmode = {
enabled = true;
enabled = false;
threshold = {
text = 150;
background = 205;

View file

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