Replace nyxt with qutebrowser as default for better performance
Keep nyxt around, will switch back when blink support is added (in progress at the moment) Update mime entries so qutebrowser is the default browser, also rewrote slightly so avoid the massive repetition in there previously
This commit is contained in:
parent
5a55c815b1
commit
1d4b2e9366
|
@ -240,7 +240,8 @@
|
||||||
"SUPER, Return, exec, ${alacritty.package}/bin/alacritty"
|
"SUPER, Return, exec, ${alacritty.package}/bin/alacritty"
|
||||||
"SUPER SHIFT, Return, exec, ${emacs.finalPackage}/bin/emacsclient -c"
|
"SUPER SHIFT, Return, exec, ${emacs.finalPackage}/bin/emacsclient -c"
|
||||||
"SUPER, S, exec, ${alacritty.package}/bin/alacritty -e btm --group --battery"
|
"SUPER, S, exec, ${alacritty.package}/bin/alacritty -e btm --group --battery"
|
||||||
"SUPER, W, exec, ${pkgs.nyxt}/bin/nyxt --no-socket --with-file bookmarks=${../nyxt/bookmarks.lisp}"
|
# "SUPER, W, exec, ${pkgs.nyxt}/bin/nyxt --no-socket --with-file bookmarks=${../nyxt/bookmarks.lisp}"
|
||||||
|
"SUPER, W, exec, ${qutebrowser.package}/bin/qutebrowser"
|
||||||
|
|
||||||
# Misc useful binds
|
# Misc useful binds
|
||||||
'',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"''
|
'',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"''
|
||||||
|
|
|
@ -37,32 +37,36 @@
|
||||||
initial_session = {inherit command;};
|
initial_session = {inherit command;};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.mime = rec {
|
xdg.mime = let
|
||||||
enable = true;
|
emacs = ["emacsclient.desktop" "emacs.desktop"];
|
||||||
defaultApplications = {
|
browser = ["org.qutebrowser.qutebrowser.desktop" "nyxt.desktop" "chromium-browser.desktop" "firefox.desktop"];
|
||||||
"application/pdf" = ["emacsclient.desktop" "emacs.desktop"];
|
applications = {
|
||||||
"application/epub+zip" = ["emacsclient.desktop" "emacs.desktop"];
|
"application/pdf" = emacs;
|
||||||
"application/oxps" = ["emacsclient.desktop" "emacs.desktop"];
|
"application/epub+zip" = emacs;
|
||||||
"image/jpeg" = ["swayimg.desktop" "emacsclient.desktop" "emacs.desktop"];
|
"application/oxps" = emacs;
|
||||||
"image/png" = ["swayimg.desktop" "emacsclient.desktop" "emacs.desktop"];
|
"image/jpeg" = ["swayimg.desktop"] ++ emacs;
|
||||||
|
"image/png" = ["swayimg.desktop"] ++ emacs;
|
||||||
"video/mp4" = ["mpv.desktop"];
|
"video/mp4" = ["mpv.desktop"];
|
||||||
"text/csv" = ["emacsclient.desktop" "emacs.desktop"];
|
"text/csv" = emacs;
|
||||||
"text/html" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"text/html" = browser;
|
||||||
"x-scheme-handler/http" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"x-scheme-handler/http" = browser;
|
||||||
"x-scheme-handler/https" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"x-scheme-handler/https" = browser;
|
||||||
"x-scheme-handler/about" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"x-scheme-handler/about" = browser;
|
||||||
"x-scheme-handler/chrome" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"x-scheme-handler/chrome" = browser;
|
||||||
"application/x-extension-htm" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"x-scheme-handler/webcal" = browser;
|
||||||
"application/x-extension-html" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"x-scheme-handler/unknown" = browser;
|
||||||
"application/x-extension-shtml" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"application/x-extension-htm" = browser;
|
||||||
"application/xhtml+xml" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"application/x-extension-html" = browser;
|
||||||
"application/x-extension-xhtml" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"application/x-extension-shtml" = browser;
|
||||||
"application/x-extension-xht" = ["firefox.desktop" "chromium-browser.desktop" "nyxt.desktop"];
|
"application/xhtml+xml" = browser;
|
||||||
"application/x-mozilla-bookmarks" = ["firefox.desktop" "chromium-browser.desktop"];
|
"application/x-extension-xhtml" = browser;
|
||||||
"x-scheme-handler/msteams" = ["firefox.desktop" "chromium-browser.desktop"];
|
"application/x-extension-xht" = browser;
|
||||||
"x-scheme-handler/zoomus" = ["firefox.desktop" "chromium-browser.desktop"];
|
"application/x-mozilla-bookmarks" = browser;
|
||||||
};
|
};
|
||||||
addedAssociations = defaultApplications;
|
in {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = applications;
|
||||||
|
addedAssociations = applications;
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue