From 57bb880d4bea2aa5a2b48f003e419953cc4d35f6 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Wed, 24 Dec 2025 11:56:27 +0100 Subject: [PATCH] background removal extract userChrome to var --- home-manager/easyeffects/default.nix | 2 +- home-manager/firefox/default.nix | 61 ++++++++++++++++------------ modules/graphical/obs.nix | 1 + 3 files changed, 36 insertions(+), 28 deletions(-) diff --git a/home-manager/easyeffects/default.nix b/home-manager/easyeffects/default.nix index fbb3e5a..b78a568 100644 --- a/home-manager/easyeffects/default.nix +++ b/home-manager/easyeffects/default.nix @@ -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); diff --git a/home-manager/firefox/default.nix b/home-manager/firefox/default.nix index 4b077fd..0fac538 100644 --- a/home-manager/firefox/default.nix +++ b/home-manager/firefox/default.nix @@ -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) diff --git a/modules/graphical/obs.nix b/modules/graphical/obs.nix index ea52a7b..a26ddba 100644 --- a/modules/graphical/obs.nix +++ b/modules/graphical/obs.nix @@ -24,6 +24,7 @@ in enable = true; plugins = with pkgs.obs-studio-plugins; [ obs-pipewire-audio-capture + obs-backgroundremoval ]; enableVirtualCamera = true; };