August 19, 2014

Change Button-layout In Freya Beta 1


Right click in your Home directory and choose Create New File > Empty File.

Name it e.g. button-layout.

Open file with Scratch and paste the following lines :

#!/bin/bash
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DecorationLayout': <'"$1"'>}"
gsettings set org.pantheon.desktop.gala.appearance button-layout "'"$1"'"
gsettings set org.gnome.desktop.wm.preferences button-layout "'"$1"'"


Close Scratch... ( file will be auto-saved ).



Right click and choose Open With > Terminal.

To change layout in : Close ( left ) and Minimize ( right ) type in Terminal :

sh ./button-layout close:minimize

To change layout in Minimize, Maximize, Close ( all right side ) :

sh ./button-layout :minimize,maximize,close

To change layout to Close ( left ) :

sh ./button-layout close:

( works in the stable version Luna as well ).


11 comments:

  1. Thank you, it works perfectly... much appreciated!!

    ReplyDelete
  2. That's awesome! Thank you so much (one of the few things I hate about Elementary is the bad button layout)!

    ReplyDelete
  3. Also can use Elementary Tweaks

    http://lmelinux.net/2014/08/25/new-version-elementary-tweaks-optimized-freya/

    ReplyDelete
    Replies
    1. Elementary tweaks didn't work for me in Freya Beta 1. This method works perfectly though.

      Delete
  4. worked like a charm, thank you very much!

    ReplyDelete
  5. Does anyone know why my chrome browser isn't taking the change? It works with firefox . . .

    ReplyDelete
    Replies
    1. Settings > Appearance > Use system title bar and borders

      Delete
  6. A bit off-topic, but what GTK theme are you using?

    ReplyDelete