Back to using nyxt as main browser with chromium as backup (and for PWAs)

This commit is contained in:
Evie Litherland-Smith 2023-12-01 06:52:47 +00:00
parent 2d8253100b
commit fba4db8435
5 changed files with 35 additions and 33 deletions

View file

@ -26,10 +26,10 @@
./home/accounts/default.nix
./home/emacs/default.nix
./home/hyprland/default.nix
./home/nyxt/default.nix
./home/alacritty.nix
./home/btop.nix
./home/default.nix
./home/firefox.nix
./home/media.nix
./home/pass.nix
];

View file

@ -38,16 +38,17 @@
"image/png" = [ "swayimg.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"text/csv" = [ "calc.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
"x-scheme-handler/chrome" = [ "firefox.desktop" ];
"text/html" = [ "firefox.desktop" ];
"application/x-extension-htm" = [ "firefox.desktop" ];
"application/x-extension-html" = [ "firefox.desktop" ];
"application/x-extension-shtml" = [ "firefox.desktop" ];
"application/xhtml+xml" = [ "firefox.desktop" ];
"application/x-extension-xhtml" = [ "firefox.desktop" ];
"application/x-extension-xht" = [ "firefox.desktop" ];
# "text/html" = [ "chromium-browser.desktop" ];
# "x-scheme-handler/http" = [ "chromium-browser.desktop" ];
# "x-scheme-handler/https" = [ "chromium-browser.desktop" ];
# "x-scheme-handler/about" = [ "chromium-browser.desktop" ];
# "x-scheme-handler/chrome" = [ "chromium-browser.desktop" ];
# "application/x-extension-htm" = [ "firefox.desktop" ];
# "application/x-extension-html" = [ "firefox.desktop" ];
# "application/x-extension-shtml" = [ "firefox.desktop" ];
# "application/xhtml+xml" = [ "firefox.desktop" ];
# "application/x-extension-xhtml" = [ "firefox.desktop" ];
# "application/x-extension-xht" = [ "firefox.desktop" ];
};
associations.added = defaultApplications;
};

View file

@ -37,11 +37,11 @@
"5" = "󰫇";
"6" = "󰫈";
"emacs" = "";
"web" = "󰈹";
"web" = "󰀹";
"discord" = "󰙯";
"steam" = "󰓓";
"apps" = "󰜫";
"top" = "󰒋";
"top" = "";
"remote" = "󰢹";
default = "󰋙";
special = "󰁡";
@ -52,12 +52,10 @@
"hyprland/window" = {
rewrite = {
"(.*) - GNU Emacs(.*)" = " $1";
"btop" = " System Status";
"ncspot" = "󰓇 Spotify TUI";
"Nyxt - (.*)" = "󰀹 $1";
"(.*) Mozilla Firefox" = "󰈹 $1";
"(.*) - Discord" = "󰙯 $1";
"(.*) Mozilla Firefox" = "󰈹 $1";
"(.*) - Chromium" = " $1";
"Nyxt - (.*)" = "󰀹 $1";
"Microsoft Teams - (.*)" = "󰊻 $1";
"Microsoft Teams classic" = "󰊻";
"Microsoft 365 - (.*)" = "󰏆 $1";

View file

@ -8,21 +8,24 @@
((default-modes (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))))
(define-configuration context-buffer
((search-engines (list
(make-instance 'search-engine
:name "Wikipedia"
:shortcut "wiki"
:search-url "https://en.wikipedia.org/w/index.php?search=~a"
:fallback-url (quri.uri:uri "https://en.wikipedia.org/"))
(make-instance 'search-engine
:name "MyNixOS"
:shortcut "nix"
:search-url "https://mynixos.com/search?q=~a"
:fallback-url (quri.uri:uri "https://mynixos.com/"))
(make-instance 'search-engine
:name "DuckDuckGo"
:shortcut "ddg"
:search-url "https://duckduckgo.com/?q=~a"
:fallback-url (quri.uri:uri "https://duckduckgo.com/"))))))
(make-instance
'search-engine
:name "Wikipedia"
:shortcut "wiki"
:search-url "https://en.wikipedia.org/w/index.php?search=~a"
:fallback-url (quri.uri:uri "https://en.wikipedia.org/"))
(make-instance
'search-engine
:name "MyNixOS"
:shortcut "mn"
:search-url "https://mynixos.com/search?q=~a"
:fallback-url (quri.uri:uri "https://mynixos.com/"))
(make-instance
'search-engine
:name "DuckDuckGo"
:shortcut "ddg"
:search-url "https://duckduckgo.com/?q=~a"
:fallback-url (quri.uri:uri "https://duckduckgo.com/"))))))
(define-configuration browser
((theme (make-instance
'theme:theme

View file

@ -1,7 +1,7 @@
{ config, pkgs, user, ... }:
{
imports = [ ./default.nix ./firefox.nix ./chromium.nix ];
imports = [ ./default.nix ./chromium.nix ];
environment.systemPackages = with pkgs; [
dex
mesa