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 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-08 20:21:52 +01:00
parent 23e66074f7
commit 1fa0ecd3b7

View file

@ -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