background removal extract userChrome to var

This commit is contained in:
Kopatz
2025-12-24 11:56:27 +01:00
parent a458c04a22
commit 57bb880d4b
3 changed files with 36 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
{
services.easyeffects = {
enable = true;
preset = "other_mic";
preset = "mic";
extraPresets = {
mic = builtins.fromJSON (builtins.readFile ./mic.json);
other_mic = builtins.fromJSON (builtins.readFile ./other_mic.json);

View File

@@ -298,6 +298,37 @@ let
};
};
};
userChrome = ''
/* Hide tab bar. Used with Sidebery */
#TabsToolbar {
visibility: collapse !important;
}
#navigator-toolbox:not(:hover):not(:focus-within):has(#toolbar-menubar[inactive]) {
margin-top: -36px;
}
/*
#nav-bar {
height: 20px;
}
#urlbar {
margin-top: -2px;
font-size: 10px;
padding-left: 5px;
min-height: 16px;
height: 16px;
}
#urlbar-searchmode-switcher {
display: none !important;
}
*/
browser[type="content-primary"],
browser[type="content"],
.browserContainer {
background-color: #${base16.base01} !important;
background: #${base16.base01} !important;
}
'';
in
{
stylix = lib.mkIf osConfig.custom.graphical.stylix.enable {
@@ -353,21 +384,7 @@ in
]
++ lib.optionals osConfig.custom.hardware.nvidia.enable [ (import ./config/nvidia-fixes.nix) ]
);
userChrome = ''
/* Hide tab bar. Used with Sidebery */
#TabsToolbar {
visibility: collapse !important;
}
#navigator-toolbox:not(:hover):not(:focus-within):has(#toolbar-menubar[inactive]) {
margin-top: -36px;
}
browser[type="content-primary"],
browser[type="content"],
.browserContainer {
background-color: #${base16.base01} !important;
background: #${base16.base01} !important;
}
'';
userChrome = userChrome;
userContent = ''
body:-moz-only-whitespace {
--body-bg-color: #${base16.base01};
@@ -407,12 +424,7 @@ in
]
++ lib.optionals osConfig.custom.hardware.nvidia.enable [ (import ./config/nvidia-fixes.nix) ]
);
userChrome = ''
/* Hide tab bar. Used with Sidebery */
#TabsToolbar {
visibility: collapse !important;
}
'';
userChrome = userChrome;
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
clearurls
darkreader
@@ -432,12 +444,7 @@ in
shit = {
name = "trade-privacy-for-convenience";
id = 1;
userChrome = ''
/* Hide tab bar. Used with Sidebery */
#TabsToolbar {
visibility: collapse !important;
}
'';
userChrome = userChrome;
settings = merge (
[
(import ./config/preferences.nix)

View File

@@ -24,6 +24,7 @@ in
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-pipewire-audio-capture
obs-backgroundremoval
];
enableVirtualCamera = true;
};