Switch to qutebrowser
This commit is contained in:
parent
93a25ba89a
commit
110481af59
12 changed files with 63 additions and 55 deletions
|
@ -2,10 +2,10 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./firefox
|
||||
./gnupg
|
||||
./mail
|
||||
./pass
|
||||
./qutebrowser
|
||||
./sound
|
||||
./sway
|
||||
./syncthing
|
||||
|
@ -34,13 +34,13 @@
|
|||
nix.unfreePackages = [ "google-chrome" ];
|
||||
};
|
||||
graphical = {
|
||||
firefox.enable = lib.mkDefault true;
|
||||
gnupg = {
|
||||
enable = lib.mkDefault true;
|
||||
pinentryFlavor = "qt";
|
||||
};
|
||||
mail.enable = lib.mkDefault true;
|
||||
pass.enable = lib.mkDefault true;
|
||||
qutebrowser.enable = lib.mkDefault true;
|
||||
sound.enable = lib.mkDefault true;
|
||||
sway.enable = lib.mkDefault true;
|
||||
syncthing.enable = lib.mkDefault true;
|
||||
|
@ -56,7 +56,6 @@
|
|||
mpv
|
||||
okular
|
||||
ranger
|
||||
ungoogled-chromium
|
||||
youtube-dl
|
||||
];
|
||||
};
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.chvp.graphical.firefox.enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.chvp.graphical.firefox.enable {
|
||||
chvp.base.zfs.homeLinks = [
|
||||
{ path = ".cache/mozilla"; type = "cache"; }
|
||||
{ path = ".mozilla"; type = "data"; }
|
||||
];
|
||||
|
||||
home-manager.users.charlotte = { ... }: {
|
||||
home.packages = with pkgs; [ firefox ];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -289,17 +289,7 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
home = {
|
||||
packages = [ pkgs.khal pkgs.khard ];
|
||||
file.".mailcap".text = ''
|
||||
text/html; ${pkgs.firefox}/bin/firefox %s ; nametemplate=%s.html; needsterminal
|
||||
text/html; ${pkgs.w3m}/bin/w3m -dump -o display_link_number=1 -o document_charset=%{charset} %s ; copiousoutput; nametemplate=%s.html
|
||||
text/calendar; ${pkgs.khal}/bin/khal import %s;
|
||||
application/pdf; ${pkgs.okular}/bin/okular %s
|
||||
image/png; ${pkgs.okular}/bin/okular %s
|
||||
image/jpeg; ${pkgs.okular}/bin/okular %s
|
||||
'';
|
||||
};
|
||||
home.packages = [ pkgs.khal pkgs.khard ];
|
||||
xdg.configFile = {
|
||||
"khal/config".text = toRecursiveINI {
|
||||
calendars = {
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
config = lib.mkIf config.chvp.graphical.pass.enable {
|
||||
nixpkgs.overlays = [
|
||||
(self: super: {
|
||||
firefox = super.firefox.override { extraNativeMessagingHosts = [ self.passff-host ]; };
|
||||
pass = (super.pass.override { pass = super.pass-wayland; }).withExtensions (ext: [ ext.pass-otp ]);
|
||||
})
|
||||
];
|
||||
|
|
42
modules/graphical/qutebrowser/default.nix
Normal file
42
modules/graphical/qutebrowser/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.chvp.graphical.qutebrowser.enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.chvp.graphical.qutebrowser.enable {
|
||||
home-manager.users.charlotte = { ... }: {
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
loadAutoconfig = true;
|
||||
aliases = {
|
||||
save-to-zotero = "jseval --quiet var d=document,s=d.createElement('script');s.src='https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0);";
|
||||
};
|
||||
keyBindings = {
|
||||
normal = {
|
||||
",m" = "hint links spawn umpv {hint-url}";
|
||||
",M" = "hint --rapid links spawn umpv {hint-url}";
|
||||
",p" = "spawn --userscript qute-pass";
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
auto_save.session = true;
|
||||
confirm_quit = [ "downloads" ];
|
||||
content = {
|
||||
autoplay = false;
|
||||
cookies.accept = "no-3rdparty";
|
||||
default_encoding = "utf-8";
|
||||
dns_prefetch = false;
|
||||
geolocation = false;
|
||||
pdfjs = true;
|
||||
};
|
||||
editor.command = [ "${config.chvp.base.emacs.package}/bin/emacsclient" "-c" "+{line}:{column}" "{file}" ];
|
||||
url.default_page = "about:blank";
|
||||
window.hide_decoration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -149,7 +149,7 @@ in
|
|||
workspace 9 output DP-3 DP-4 DP-5 HDMI-A-1 eDP-1
|
||||
|
||||
workspace 1
|
||||
exec ${pkgs.firefox}/bin/firefox
|
||||
exec ${pkgs.qutebrowser}/bin/qutebrowser
|
||||
|
||||
no_focus [title="Microsoft Teams Notification"]
|
||||
|
||||
|
|
|
@ -32,11 +32,11 @@
|
|||
"image/jpeg" = [ "org.kde.okular.desktop" ];
|
||||
"application/pdf" = [ "org.kde.okular.desktop" ];
|
||||
|
||||
"text/html" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/about" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/https" = [ "firefox.desktop" ];
|
||||
"x-scheme-handler/unknown" = [ "firefox.desktop" ];
|
||||
"text/html" = [ "qutebrowser.desktop" ];
|
||||
"x-scheme-handler/about" = [ "qutebrowser.desktop" ];
|
||||
"x-scheme-handler/http" = [ "qutebrowser.desktop" ];
|
||||
"x-scheme-handler/https" = [ "qutebrowser.desktop" ];
|
||||
"x-scheme-handler/unknown" = [ "qutebrowser.desktop" ];
|
||||
|
||||
"x-scheme-handler/msteams" = [ "teams.desktop" ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue