dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit d842ecb442389c703a4c5c204bc817e9733aba1c parent 5cce38dafa1cdccf81fe3ba243510bb5ce8168f2 Author: maydayv7 <maydayv7@gmail.com> Date: Sat, 11 Oct 2025 18:45:29 +0530 feat: Brave <- Chrome Twas a long time coming
Diffstat:
| M | files/touchegg.xml | | | 2 | +- |
| M | flake.lock | | | 7 | ++++--- |
| M | flake.nix | | | 2 | +- |
| M | modules/apps/office.nix | | | 10 | +++++++--- |
| M | modules/gui/desktop/_shared/misc.nix | | | 88 | +++++++++++++++++++++++++++++++++++++++++++------------------------------------ |
| M | modules/gui/desktop/gnome/settings/apps.nix | | | 2 | +- |
| M | modules/gui/desktop/hyprland/settings/apps.nix | | | 4 | ++-- |
| M | modules/gui/desktop/pantheon/settings.nix | | | 2 | +- |
| A | packages/overlays/brave.nix | | | 11 | +++++++++++ |
| D | packages/overlays/chrome.nix | | | 10 | ---------- |
10 files changed, 76 insertions(+), 62 deletions(-)
diff --git a/files/touchegg.xml b/files/touchegg.xml @@ -119,7 +119,7 @@ Configuration for specific applications --> - <application name="Google-chrome,Chromium-browser,Firefox"> + <application name="Firefox"> <gesture type="PINCH" fingers="2" direction="IN"> <action type="SEND_KEYS"> <repeat>true</repeat> diff --git a/flake.lock b/flake.lock @@ -135,15 +135,16 @@ ] }, "locked": { - "lastModified": 1757320803, - "narHash": "sha256-7PUIQOMQSJLkNtV42SAYUDw0mRdbBNl6q8pLN8GViwM=", + "lastModified": 1754766435, + "narHash": "sha256-DT8CQoqV2haX+Fo16WXAt9gKCSXOZH9ZfnV++Br+qcM=", "owner": "catppuccin", "repo": "nix", - "rev": "d75e3fe67f49728cb5035bc791f4b9065ff3a2c9", + "rev": "e339d6d822fa81c39d1ab89694b4ee2cfc830c9a", "type": "github" }, "original": { "owner": "catppuccin", + "ref": "release-25.05", "repo": "nix", "type": "github" } diff --git a/flake.nix b/flake.nix @@ -179,7 +179,7 @@ # Catppuccin Theme catppuccin = { - url = "github:catppuccin/nix"; + url = "github:catppuccin/nix?ref=release-25.05"; inputs.nixpkgs.follows = "nixpkgs"; }; diff --git a/modules/apps/office.nix b/modules/apps/office.nix @@ -30,6 +30,10 @@ in "djflhoibgkdhkhhcedjiklpkjnoahfmg" # User Agent Switcher "lckanjgmijmafbedllaakclkaicjfmnk" # ClearURLs "oofgbpoabipfcfjapgnbbjjaenockbdp" # SetupVPN + "jghecgabfgfdldnmbfkhmffcabddioke" # Volume Booster + "jaioibhbkffompljnnipmpkeafhpicpd" # Tab Auto Refresh + "eimadpbcbfnmbkopoojfekhnkhdbieeh" # Dark Reader + "clngdbkpkpeebahjckkjfobafhncgmne" # Stylus ]; }; }; @@ -50,7 +54,7 @@ in xournalpp # Internet - google-chrome + brave linux-wifi-hotspot openfortivpn teams-for-linux @@ -87,9 +91,9 @@ in ".calibre" ".thunderbird" ".zoom" + ".config/BraveSoftware" ".config/calibre" ".config/GIMP" - ".config/google-chrome" ".config/inkscape" ".config/libreoffice" ".config/obs-studio" @@ -98,9 +102,9 @@ in ".local/share/data" ".local/share/onlyoffice" ".local/share/whatsapp-for-linux" + ".cache/BraveSoftware" ".cache/gimp" ".cache/thunderbird" - ".cache/google-chrome" ".cache/whatsapp-for-linux" ".cache/zoom" ]; diff --git a/modules/gui/desktop/_shared/misc.nix b/modules/gui/desktop/_shared/misc.nix @@ -30,9 +30,10 @@ in inherit accent; flavor = variant; - thunderbird.enable = true; - vesktop.enable = true; - vscode.enable = true; + brave.enable = exists "office"; + thunderbird.enable = exists "office"; + vesktop.enable = exists "discord"; + vscode.enable = exists "vscode"; }; # Code Editor @@ -45,43 +46,50 @@ in }; # KDE Apps - home.file.".config/kdeglobals".text = - with config.lib.stylix.colors; - '' - [Colors:Selection] - BackgroundNormal=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} - BackgroundAlternate=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} - ForegroundNormal=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} - ForegroundActive=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} - ForegroundInactive=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} - ForegroundLink=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} - ForegroundVisited=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} - '' - + (concatStringsSep "\n" ( - map - (name: '' - [Colors:${name}] - BackgroundNormal=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} - BackgroundAlternate=${base01-rgb-r},${base01-rgb-g},${base01-rgb-b} - DecorationFocus=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} - DecorationHover=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} - ForegroundNormal=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} - ForegroundActive=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} - ForegroundInactive =${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} - ForegroundLink=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} - ForegroundVisited=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} - ForegroundNegative=${base08-rgb-r},${base08-rgb-g},${base08-rgb-b} - ForegroundNeutral=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} - ForegroundPositive=${base0B-rgb-r},${base0B-rgb-g},${base0B-rgb-b} - '') - [ - "View" - "Window" - "Button" - "Tooltip" - "Complementary" - ] - )); + home.file = { + ".config/kwalletrc".text = '' + [Wallet] + Enabled=false + ''; + + ".config/kdeglobals".text = + with config.lib.stylix.colors; + '' + [Colors:Selection] + BackgroundNormal=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + BackgroundAlternate=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + ForegroundNormal=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + ForegroundActive=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + ForegroundInactive=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + ForegroundLink=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + ForegroundVisited=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + '' + + (concatStringsSep "\n" ( + map + (name: '' + [Colors:${name}] + BackgroundNormal=${base00-rgb-r},${base00-rgb-g},${base00-rgb-b} + BackgroundAlternate=${base01-rgb-r},${base01-rgb-g},${base01-rgb-b} + DecorationFocus=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + DecorationHover=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + ForegroundNormal=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundActive=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundInactive =${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundLink=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundVisited=${base05-rgb-r},${base05-rgb-g},${base05-rgb-b} + ForegroundNegative=${base08-rgb-r},${base08-rgb-g},${base08-rgb-b} + ForegroundNeutral=${base0D-rgb-r},${base0D-rgb-g},${base0D-rgb-b} + ForegroundPositive=${base0B-rgb-r},${base0B-rgb-g},${base0B-rgb-b} + '') + [ + "View" + "Window" + "Button" + "Tooltip" + "Complementary" + ] + )); + }; }; }; } diff --git a/modules/gui/desktop/gnome/settings/apps.nix b/modules/gui/desktop/gnome/settings/apps.nix @@ -100,7 +100,7 @@ in # App Grid "org/gnome/shell" = { favorite-apps = [ - "google-chrome.desktop" + "brave-browser.desktop" "org.gnome.Geary.desktop" "org.gnome.Nautilus.desktop" "com.mitchellh.ghostty.desktop" diff --git a/modules/gui/desktop/hyprland/settings/apps.nix b/modules/gui/desktop/hyprland/settings/apps.nix @@ -124,8 +124,8 @@ in # Media Consumption "idleinhibit focus, class:^(mpv|.*celluloid.*|.+exe)$" - "idleinhibit focus, class:^(firefox|google-chrome)$, title:^(.*YouTube.*)$" - "idleinhibit fullscreen, class:^(firefox|google-chrome)$" + "idleinhibit focus, class:^(firefox|brave-browser)$, title:^(.*YouTube.*)$" + "idleinhibit fullscreen, class:^(firefox|brave-browser)$" # Screen Tearing "immediate, class:^(.+exe)$" diff --git a/modules/gui/desktop/pantheon/settings.nix b/modules/gui/desktop/pantheon/settings.nix @@ -123,7 +123,7 @@ in icon-size = 48; launchers = [ "gala-multitaskingview.desktop" - "google-chrome.desktop" + "brave-browser.desktop" "io.elementary.mail.desktop" "io.elementary.terminal.desktop" "io.elementary.files.desktop" diff --git a/packages/overlays/brave.nix b/packages/overlays/brave.nix @@ -0,0 +1,11 @@ +final: prev: { + # Brave Browser Flags + brave = prev.brave.overrideAttrs (old: { + installPhase = old.installPhase + '' + exe="$out/bin/brave" + fix=" --enable-features=TouchpadOverscrollHistoryNavigation --gtk-version=4" + substituteInPlace $out/share/applications/{brave-browser,com.brave.Browser}.desktop \ + --replace-fail $exe "$exe$fix" + ''; + }); +} diff --git a/packages/overlays/chrome.nix b/packages/overlays/chrome.nix @@ -1,10 +0,0 @@ -final: prev: { - # Google Chrome Flags - google-chrome = prev.google-chrome.overrideAttrs (old: { - installPhase = old.installPhase + '' - fix=" --enable-features=TouchpadOverscrollHistoryNavigation --gtk-version=4" - substituteInPlace $out/share/applications/google-chrome.desktop \ - --replace $exe "$exe$fix" - ''; - }); -}