diff --git a/modules/home/browser.nix b/modules/home/browser.nix index b398e29..ed5cfe6 100644 --- a/modules/home/browser.nix +++ b/modules/home/browser.nix @@ -6,4 +6,21 @@ home.packages = with pkgs; [ google-chrome ]; + + xdg.desktopEntries."google-chrome" = { + name = "Google Chrome"; + genericName = "Web Browser"; + exec = "${pkgs.google-chrome}/bin/google-chrome-stable --enable-features=TouchpadOverscrollHistoryNavigation %U"; + terminal = false; + icon = "google-chrome"; + categories = [ "Network" "WebBrowser" ]; + startupNotify = true; + type = "Application"; + }; + + xdg.mimeApps.defaultApplications = { + "text/html" = "google-chrome.desktop"; + "x-scheme-handler/http" = "google-chrome.desktop"; + "x-scheme-handler/https" = "google-chrome.desktop"; + }; } diff --git a/modules/home/noctalia.nix b/modules/home/noctalia.nix index 1b73090..21c6e4c 100644 --- a/modules/home/noctalia.nix +++ b/modules/home/noctalia.nix @@ -90,6 +90,16 @@ randomIntervalSec = 60; transitionDuration = 1500; }; + dock = { + enabled = true; + displayMode = "auto_hide"; + backgroundOpacity = 0.8; + floatingRatio = 1; + size = 1; + onlySameOutput = true; + pinnedApps = [ "google-chrome.desktop" "code.desktop" ]; + colorizeIcons = false; + }; controlCenter = { position = "close_to_bar_button"; shortcuts = {