The future is now, GNOME Shell is here

Window title default buttonsThe window title default buttons layout in GNOME 3 will show only a closing button on the right side. No more minimize, maximize and application menu buttons like in the previous GNOME releases.

The buttons layout on the window title bar can be restored or changed to any wanted combination using a single command inside a terminal window. The syntax for change the buttons layout is:

gconftool-2 --set --type str /desktop/gnome/shell/windows/button_layout "LEFT_SIDE:RIGHT_SIDE"

The LEFT_SIDE refers to the left side of the title bar, while the RIGHT_SIDE will refer to the corresponding opposite right size of the window title bar. At each side can be placed zero or more buttons but a button cannot be repeated more than once.

After executing the required command a GNOME Shell restart is needed. It will be enough to logout the current session and then login again.

The available buttons are:

  • menu is the application menu with options to minimize, maximize, move, restore, always on top and workspaces management
  • minimize is the button used to minimize the window to icon
  • maximize is the button to make the window size at the max available size
  • spacer is a dummy button to let a little space between buttons
  • close is the X closing button

With that buttons a lot of combinations can be made. Multiple buttons ought be separated with commas.

Just close button on the right sideThe default GNOME 3 layout uses only a close button on the right side and no buttons on the left side, so the command to achieve this will be:

gconftool-2 --set --type str /desktop/gnome/shell/windows/button_layout ":close"

Minimize and close buttons on right sideTo add a minimize button behind the close button we could use:

gconftool-2 --set --type str /desktop/gnome/shell/windows/button_layout ":minimize,close"

Menu button on the left and close button on the right sideA menu button could be added and placed on the left side the following command could be used:

gconftool-2 --set --type str /desktop/gnome/shell/windows/button_layout "menu:close"

Menu button on the left and minimize, maximize and close button on the rightTo add both minimize and maximize buttons to the previous layout such command will be needed:

gconftool-2 --set --type str /desktop/gnome/shell/windows/button_layout "menu:minimize,maximize,close"

Menu button on the left side and minimize, maximize, space and close buttons on the rightA space could be added as separator between the buttons:

gconftool-2 --set --type str /desktop/gnome/shell/windows/button_layout "menu:minimize,maximize,spacer,close"

Only close button on the left sideEach button can be moved on the other side so here’s the close button on the left side of the title bar:

gconftool-2 --set --type str /desktop/gnome/shell/windows/button_layout "close:"

Close button on the left and minimize and maximize buttons on the right sideObviously in the same way, the others buttons could be added to obtain the desired layout:

gconftool-2 --set --type str /desktop/gnome/shell/windows/button_layout "close:minimize,maximize"

Make sure to restart the GNOME Shell (or restart the current GNOME session) to apply the changes.


Comments on: "Change the window title buttons" (3)

  1. Vandrei Jaques said:

    This post really help me. Thank you very much.

  2. you do not have to restart gnome-shell to apply changes

    run R

  3. This doesn’t work in gnome-shell 3.4

Leave a comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: