From 1fa0ecd3b71fbd22b3c1dba7b0dc4132391ae8a6 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 8 Apr 2026 20:21:52 +0100 Subject: [PATCH] Hide GNOME window buttons and minimize titlebars - Set button-layout to empty string (removes close/min/max buttons) - Add GTK 3/4 CSS to shrink headerbar height and hide title text - Ghostty opacity adjusted to 0.98 Co-Authored-By: Claude Opus 4.6 --- home-manager/gnome-hm.nix | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/home-manager/gnome-hm.nix b/home-manager/gnome-hm.nix index 834a6fd..c2b0932 100644 --- a/home-manager/gnome-hm.nix +++ b/home-manager/gnome-hm.nix @@ -2,8 +2,32 @@ { config = lib.mkIf (lib.elem osConfig.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) { - home.file.".local/share/backgrounds/wallpaper.png".source = + home.file.".local/share/backgrounds/wallpaper.png".source = "${inputs.self}/walls/wallpaper.png"; + + # Minimal titlebars — hide window buttons and shrink headerbar + home.file.".config/gtk-4.0/gtk.css".force = true; + home.file.".config/gtk-4.0/gtk.css".text = '' + headerbar { + min-height: 0; + padding: 0; + margin: 0; + } + headerbar .title { + font-size: 0; + } + ''; + home.file.".config/gtk-3.0/gtk.css".force = true; + home.file.".config/gtk-3.0/gtk.css".text = '' + headerbar { + min-height: 0; + padding: 0; + margin: 0; + } + headerbar .title { + font-size: 0; + } + ''; # GNOME dconf settings dconf.settings = { @@ -39,6 +63,7 @@ }; "org/gnome/desktop/wm/preferences" = { resize-with-right-button = lib.hm.gvariant.mkBoolean true; + button-layout = ""; }; # Shell keybindings