From 897f165db7e537e8c3edd92f4cc9d987ccdbfefb Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Thu, 29 Jul 2021 13:45:56 +0200 Subject: [PATCH] More qute config --- flake.lock | 6 +++--- modules/graphical/qutebrowser/default.nix | 8 +++++++- modules/graphical/sway/default.nix | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index b0263213..98afe6d7 100644 --- a/flake.lock +++ b/flake.lock @@ -42,11 +42,11 @@ }, "emacs-overlay": { "locked": { - "lastModified": 1627492758, - "narHash": "sha256-F0MvuI2klvuJHctBxzptT2jXcTO8QydkyzmeXw7HiBI=", + "lastModified": 1627547647, + "narHash": "sha256-HHsFFt2FjhUVdPEbzWnI76D3Br3YoMye8t9ak1uBH7E=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "ddb0d59fb57b0f274a2a61881fbbad10ab79ee4c", + "rev": "99299813ca10b3e4fd96eaa3c3030cbb306dca68", "type": "github" }, "original": { diff --git a/modules/graphical/qutebrowser/default.nix b/modules/graphical/qutebrowser/default.nix index ec97f21a..4a19b46c 100644 --- a/modules/graphical/qutebrowser/default.nix +++ b/modules/graphical/qutebrowser/default.nix @@ -7,6 +7,10 @@ }; config = lib.mkIf config.chvp.graphical.qutebrowser.enable { + chvp.base.zfs.homeLinks = [ + { path = ".config/qutebrowser"; type = "data"; } + { path = ".local/share/qutebrowser"; type = "cache"; } + ]; home-manager.users.charlotte = { ... }: { programs.qutebrowser = { enable = true; @@ -26,9 +30,11 @@ confirm_quit = [ "downloads" ]; content = { autoplay = false; - cookies.accept = "no-3rdparty"; + cookies.accept = "never"; default_encoding = "utf-8"; dns_prefetch = false; + fullscreen.window = true; + javascript.enabled = false; geolocation = false; pdfjs = true; }; diff --git a/modules/graphical/sway/default.nix b/modules/graphical/sway/default.nix index 666067dc..5a87cf71 100644 --- a/modules/graphical/sway/default.nix +++ b/modules/graphical/sway/default.nix @@ -135,6 +135,8 @@ in "XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%"; "${modifier}+Alt+Left" = "move workspace to output left"; "${modifier}+Alt+Right" = "move workspace to output right"; + # Invoke default action on top notification. + "${modifier}+n" = "exec ${pkgs.mako}/bin/makoctl invoke"; }; }; extraConfig = ''