# title_bar: Respect Linux titlebar config \(\#47506\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/60a29857f12cba0d24209be6568f75b171bd7f45)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 60a29857f12cba0d24209be6568f75b171bd7f45

Requested commit: 60a29857f12cba0d24209be6568f75b171bd7f45

Commit: 60a29857f12cba0d24209be6568f75b171bd7f45

Tree: 4211e5c433c1c254e6ab945ea470b5cb9adab459

Author: Mufeed Ali

Committer: GitHub

## Message

```
title_bar: Respect Linux titlebar config (#47506)

Currently, Zed always places three fixed window buttons (Minimize,
Maximize and Close) on the right side of the window in a fixed order
ignoring any user configuration or desktop environment preference (like
elementary).

This PR adds support for GNOME-style layout strings (`minimize:close`).
By default, we pull it from the gsettings portal, but we also allow
manual configuration via `title_bar.button_layout` config key.

<img width="1538" height="797" alt="image"
src="https://github.com/user-attachments/assets/5db6bfa2-3052-4640-9228-95c37f318929"
/>

Closes #46512

I know it's a relatively large PR for my first one and I'm new to Rust.
So, sorry if I've made any huge mistakes. I had just made it for
personal use and then decided to try to clean it up and submit it.

I've tested with different configs on Linux. Untested on other
platforms, but should have no impact.

If it's not up to par, it's okay, feel free to close :)

Release Notes:

- Added support for GNOME's window buttons configuration on Linux.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

- [466995cb8125d10d6859beffb835b79b6e68ca6d](https://git.cafe/gitcafe/zed/commit/466995cb8125d10d6859beffb835b79b6e68ca6d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/60a29857f12cba0d24209be6568f75b171bd7f45?format=markdown)
