From 43a8cb976c8f2841111b49b96f6c5c7df63bef84 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Thu, 16 Apr 2026 19:40:31 +0100 Subject: [PATCH] Hide VSCodium title bar via workbench.html CSS injection Override vscodium with a postFixup step that appends a style tag to workbench.html hiding the titlebar part, so the window sits flush against GNOME's edge without native or custom decorations. Co-Authored-By: Claude Opus 4.6 --- hosts/FredOS-Gaming.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index 54171ad..d48f70f 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -21,7 +21,15 @@ adwsteamgtk proton-vpn onlyoffice-desktopeditors - vscodium + (vscodium.overrideAttrs (old: { + postFixup = (old.postFixup or "") + '' + workbenchHtml="$out/lib/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.html" + if [ -f "$workbenchHtml" ]; then + substituteInPlace "$workbenchHtml" \ + --replace-fail '' '' + fi + ''; + })) ]; programs.nix-ld.enable = true;