From 6364d8afa0902e0c7939eea139a6385db6fbe05a Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Wed, 16 Apr 2025 13:06:16 +0200 Subject: [PATCH] Updated CSD logic --- user-modules/desktop/theming/default.nix | 30 +++++++++++++++--------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/user-modules/desktop/theming/default.nix b/user-modules/desktop/theming/default.nix index 640933c..daf938a 100644 --- a/user-modules/desktop/theming/default.nix +++ b/user-modules/desktop/theming/default.nix @@ -273,16 +273,18 @@ in # Configure gtk theme gtk = - # disableCSD = '' - # headerbar.default-decoration { - # margin-bottom: 50px; - # margin-top: -100px; - # } - # window.csd, - # window.csd decoration { - # box-shadow: none; - # } - # ''; + let + disableCSD = '' + headerbar.default-decoration { + margin-bottom: 50px; + margin-top: -100px; + } + window.csd, + window.csd decoration { + box-shadow: none; + } + ''; + in { enable = true; @@ -291,6 +293,9 @@ in package = pkgs.gnome-themes-extra; }; + # TODO: Toggles + gtk3.extraCss = disableCSD; + gtk4.extraCss = disableCSD; }; # TODO: This should just straight up not be here @@ -324,7 +329,10 @@ in foot.enable = true; nixvim.enable = true; qutebrowser.enable = true; - vscode.enable = true; + vscode = { + enable = true; + profileNames = [ "NixOS" ]; + }; zathura.enable = true; };