feat: refactored firefox config

This commit is contained in:
Nick 2024-10-20 04:01:31 -05:00
parent 6a98266619
commit fa753b9d14
3 changed files with 648 additions and 574 deletions

File diff suppressed because it is too large Load diff

62
home-manager/modules/firefox/config/userChrome.css Executable file → Normal file
View file

@ -1,98 +1,98 @@
/* Title bar */ /* Title bar */
.titlebar-spacer { .titlebar-spacer {
display: none !important; display: none !important;
} }
/* Tab bar */ /* Tab bar */
#navigator-toolbox { #navigator-toolbox {
border: 0px !important; border: 0px !important;
} }
#TabsToolbar { #TabsToolbar {
margin-left: 3px !important; margin-left: 3px !important;
} }
#TabsToolbar > .tabbrowser-arrowscrollbox { #TabsToolbar > .tabbrowser-arrowscrollbox {
overflow: visible !important; overflow: visible !important;
} }
/* Nav bar */ /* Nav bar */
#nav-bar { #nav-bar {
height: 0px; height: 0px;
min-height: 0px !important; min-height: 0px !important;
overflow: hidden; overflow: hidden;
transition: height 0.3s ease-in-out; transition: height 0.3s ease-in-out;
} }
/* Only show nav-bar when specifically focused, not when clicking tab bar */ /* Only show nav-bar when specifically focused, not when clicking tab bar */
#nav-bar:focus-within { #nav-bar:focus-within {
overflow: visible; overflow: visible;
height: auto; height: auto;
} }
/* Remove placeholder text in the URL bar */ /* Remove placeholder text in the URL bar */
#urlbar-input::placeholder { #urlbar-input::placeholder {
color: transparent !important; color: transparent !important;
} }
#urlbar { #urlbar {
padding: 2px !important; padding: 2px !important;
} }
/* Hide URL bar text */ /* Hide URL bar text */
#urlbar-background { #urlbar-background {
border: none !important; border: none !important;
} }
#urlbar-border:focus-within { #urlbar-border:focus-within {
overflow: visible; overflow: visible;
height: auto; height: auto;
} }
/* Hide search engine icon */ /* Hide search engine icon */
#urlbar .search-one-offs:not([hidden]) { #urlbar .search-one-offs:not([hidden]) {
display: none !important; display: none !important;
} }
/* Hide tracking protection icon */ /* Hide tracking protection icon */
#tracking-protection-icon-container { #tracking-protection-icon-container {
display: none !important; display: none !important;
} }
#urlbar-container { #urlbar-container {
width: auto !important; width: auto !important;
} }
#urlbar { #urlbar {
box-shadow: none !important; box-shadow: none !important;
} }
#page-action-buttons { #page-action-buttons {
display: none !important; display: none !important;
} }
/* Hide site information button */ /* Hide site information button */
#identity-box { #identity-box {
display: none !important; display: none !important;
} }
/* Hide shield icon */ /* Hide shield icon */
#tracking-protection-icon-container { #tracking-protection-icon-container {
display: none !important; display: none !important;
} }
/* Hide forward and back buttons when not active */ /* Hide forward and back buttons when not active */
#back-button[disabled="true"] { #back-button[disabled="true"] {
display: none !important; display: none !important;
} }
#forward-button[disabled="true"] { #forward-button[disabled="true"] {
display: none !important; display: none !important;
} }
.personalize-button { .personalize-button {
display: none !important; display: none !important;
} }
.tab-close-button { .tab-close-button {
visibility: hidden !important; visibility: hidden !important;
margin-inline-end: 0 !important; margin-inline-end: 0 !important;
width: 16px !important; width: 16px !important;
height: 16px !important; height: 16px !important;
padding: 2px !important; padding: 2px !important;
} }
.tabbrowser-tab:hover .tab-close-button { .tabbrowser-tab:hover .tab-close-button {
visibility: visible !important; visibility: visible !important;
} }

View file

@ -6,6 +6,9 @@
}: let }: let
inherit (flake.config.people) user0; inherit (flake.config.people) user0;
in { in {
imports = [
./config/bookmarks.nix
];
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox; package = pkgs.firefox;
@ -13,7 +16,6 @@ in {
${user0} = { ${user0} = {
isDefault = true; isDefault = true;
search = import ./config/search.nix; search = import ./config/search.nix;
bookmarks = import ./config/bookmarks.nix;
settings = import ./config/settings.nix; settings = import ./config/settings.nix;
extensions = import ./config/extensions.nix {inherit nur;}; extensions = import ./config/extensions.nix {inherit nur;};
userChrome = builtins.readFile ./config/userChrome.css; userChrome = builtins.readFile ./config/userChrome.css;