diff options
| author | spl3g <spleefer6@yandex.ru> | 2024-08-26 22:48:25 +0500 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-05-01 14:58:56 +0300 |
| commit | 2a9f76a26428b7ef89cd833c3535866581fd73fa (patch) | |
| tree | 56f3f5b08a01d329833eb6ccf7370136ae18801d /home-manager/homeModules/firefox.nix | |
| parent | a6fee85b5f98f64e30bf98697857d218f9b1d7c0 (diff) | |
fix: update shyfox
Diffstat (limited to 'home-manager/homeModules/firefox.nix')
| -rw-r--r-- | home-manager/homeModules/firefox.nix | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/home-manager/homeModules/firefox.nix b/home-manager/homeModules/firefox.nix index 5860ddf..b77272b 100644 --- a/home-manager/homeModules/firefox.nix +++ b/home-manager/homeModules/firefox.nix @@ -21,7 +21,16 @@ mal-sync ]; - extraConfig = builtins.readFile "${inputs.shyfox.outPath}/user.js"; + extraConfig = + let + shyfox = builtins.readFile "${inputs.shyfox.outPath}/user.js"; + arkenfox = builtins.readFile "${inputs.arkenfox.outPath}/user.js"; + overrides = '' + user_pref("shyfox.disable.floating.search", true); + user_pref("shyfox.remove.window.controls", true); + ''; + in + shyfox; search = { force = true; engines = { @@ -66,23 +75,23 @@ }; }; }; - home.file = - let - shyfox = pkgs.runCommand "shyfox-chrome" {} '' + home.file = { + "chrome" = + let + shyfox = pkgs.runCommand "shyfox-chrome" {} '' mkdir $out cp -r "${inputs.shyfox}/chrome" $out chmod -R 755 $out/chrome cp ${config.wallpaper} $out/chrome/wallpaper.png - sed -i -e 's/#main-window:is(\[sizemode="fullscreen"\], \[titlepreface\*="?"\])/#main-window/g' $out/chrome/ShyFox/shy-controls.css - sed -z -i -e 's/@import url("ShyFox\/shy-floating-search.css");\n//g' $out/chrome/userChrome.css - sed -i -e 's/content: "Open Sidebery!";/content: none;/g' $out/chrome/ShyFox/shy-sidebar.css + echo -e "browser {\n margin: 0 !important;\n}" >> $out/chrome/userChrome.css + substituteInPlace $out/chrome/ShyFox/shy-sidebar.css \ + --replace-fail 'content: var(--shyfox-string-open-sidebar);' 'content: none;' ''; - in { - "chrome" = { - source = "${shyfox}/chrome"; - target = ".mozilla/firefox/ShyFox/chrome/"; - recursive = true; - }; + in { + source = "${shyfox}/chrome"; + target = ".mozilla/firefox/ShyFox/chrome/"; + recursive = true; + }; }; }; } |
