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 = { services.easyeffects = {
enable = true; enable = true;
preset = "other_mic"; preset = "mic";
extraPresets = { extraPresets = {
mic = builtins.fromJSON (builtins.readFile ./mic.json); mic = builtins.fromJSON (builtins.readFile ./mic.json);
other_mic = builtins.fromJSON (builtins.readFile ./other_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 in
{ {
stylix = lib.mkIf osConfig.custom.graphical.stylix.enable { 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) ] ++ lib.optionals osConfig.custom.hardware.nvidia.enable [ (import ./config/nvidia-fixes.nix) ]
); );
userChrome = '' userChrome = 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;
}
'';
userContent = '' userContent = ''
body:-moz-only-whitespace { body:-moz-only-whitespace {
--body-bg-color: #${base16.base01}; --body-bg-color: #${base16.base01};
@@ -407,12 +424,7 @@ in
] ]
++ lib.optionals osConfig.custom.hardware.nvidia.enable [ (import ./config/nvidia-fixes.nix) ] ++ lib.optionals osConfig.custom.hardware.nvidia.enable [ (import ./config/nvidia-fixes.nix) ]
); );
userChrome = '' userChrome = userChrome;
/* Hide tab bar. Used with Sidebery */
#TabsToolbar {
visibility: collapse !important;
}
'';
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [ extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
clearurls clearurls
darkreader darkreader
@@ -432,12 +444,7 @@ in
shit = { shit = {
name = "trade-privacy-for-convenience"; name = "trade-privacy-for-convenience";
id = 1; id = 1;
userChrome = '' userChrome = userChrome;
/* Hide tab bar. Used with Sidebery */
#TabsToolbar {
visibility: collapse !important;
}
'';
settings = merge ( settings = merge (
[ [
(import ./config/preferences.nix) (import ./config/preferences.nix)

View File

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