Compare commits
2 commits
466e923164
...
5c430fcfa0
Author | SHA1 | Date | |
---|---|---|---|
5c430fcfa0 | |||
d6cd3cab18 |
3 changed files with 49 additions and 1 deletions
35
nixos/home/firefox/custom.css
Normal file
35
nixos/home/firefox/custom.css
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
.browser-toolbar > * #alltabs-button,
|
||||||
|
#appMenu-fxa-status2,
|
||||||
|
#appMenu-fxa-separator {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#unified-extensions-button {
|
||||||
|
display: flex;
|
||||||
|
left: calc(100vw - var(--uc-window-control-width) - 13px) !important;
|
||||||
|
top: var(--windowed-top-padding, -0.5px);
|
||||||
|
z-index: 3 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#appMenu-popup {
|
||||||
|
position: fixed !important;
|
||||||
|
top: 0px !important;
|
||||||
|
left: 0px !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#appMenu-popup panelview {
|
||||||
|
border-width: 2px 6px !important;
|
||||||
|
border-radius: 5% 0 0 5% !important;
|
||||||
|
border-image: var(--panel-separator-zap-gradient4) 1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#unified-extensions-panel panelview {
|
||||||
|
border-width: 0 !important;
|
||||||
|
border-radius: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
slot {
|
||||||
|
margin: 0 !important;
|
||||||
|
border-radius: 5% 0 0 5% !important;
|
||||||
|
}
|
|
@ -23,6 +23,8 @@ stdenvNoCC.mkDerivation {
|
||||||
sed -i 's/rounded_corner.chrome", true/rounded_corner.chrome", false/' ./user.js
|
sed -i 's/rounded_corner.chrome", true/rounded_corner.chrome", false/' ./user.js
|
||||||
sed -i 's/rounded_corner.wave", false/rounded_corner.wave", true/' ./user.js
|
sed -i 's/rounded_corner.wave", false/rounded_corner.wave", true/' ./user.js
|
||||||
|
|
||||||
|
mv ./Extras/Left-SideBar/ogx_left-sidebar.css ./chrome/components
|
||||||
|
mv ./Extras/OneLine/ogx_oneline.css ./chrome/components
|
||||||
|
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -r ./* $out
|
cp -r ./* $out
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.file = {
|
home.file = {
|
||||||
".mozilla/firefox/matt/chrome".source = "${firefox-gx}/chrome";
|
".mozilla/firefox/matt/chrome/components".source = "${firefox-gx}/chrome/components";
|
||||||
|
".mozilla/firefox/matt/chrome/icons".source = "${firefox-gx}/chrome/icons";
|
||||||
|
".mozilla/firefox/matt/chrome/images".source = "${firefox-gx}/chrome/images";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
|
@ -15,14 +17,23 @@ in
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
id = 0;
|
id = 0;
|
||||||
|
|
||||||
|
userChrome = ''
|
||||||
|
${builtins.readFile "${firefox-gx}/chrome/userChrome.css"}
|
||||||
|
${builtins.readFile ./custom.css}
|
||||||
|
'';
|
||||||
|
userContent = builtins.readFile "${firefox-gx}/chrome/userContent.css";
|
||||||
extraConfig = builtins.readFile "${firefox-gx}/user.js";
|
extraConfig = builtins.readFile "${firefox-gx}/user.js";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
# Open previous windows and tabs
|
# Open previous windows and tabs
|
||||||
"browser.startup.page" = 3;
|
"browser.startup.page" = 3;
|
||||||
|
|
||||||
# Prefs
|
# Prefs
|
||||||
|
"layout.css.devPixelsPerPx" = 1.15;
|
||||||
|
"browser.tabs.firefox-view" = false;
|
||||||
"browser.search.widget.inNavBar" = true;
|
"browser.search.widget.inNavBar" = true;
|
||||||
"browser.toolbars.bookmarks.visibility" = "always";
|
"browser.toolbars.bookmarks.visibility" = "always";
|
||||||
|
"browser.toolbars.bookmarks.showInPrivateBrowsing" = true;
|
||||||
|
|
||||||
# remove telemetry
|
# remove telemetry
|
||||||
"datareporting.policy.dataSubmissionEnabled" = false;
|
"datareporting.policy.dataSubmissionEnabled" = false;
|
||||||
|
|
Loading…
Reference in a new issue