Tuesday, October 3, 2023
rated 0 times [  29] [ 0]  / answers: 1 / hits: 31091  / 8 Months ago, sun, february 19, 2023, 9:17:07

I know that Ubuntu has a file hidden somewhere deep inside it that holds the old metacity values for changing the position of the menu buttons. My question is how can I do this WITHOUT Ubuntu Tweak in Ubuntu Classic?

"Why not use the thing that's already done?"

  • That thing was written by finding this file once then making a mental note of it to create a GUI to solve the problem, which is all fine and dandy.

  • I want to learn where this stuff is for myself because I like knowing how to do things from the command line. (Also, come on, how many times have you seen a dude in a coffee shop using the command line interface to mess with stuff?)

  • It could be helpful to note the directory for others because of installing other themes to gnome-classic (cough new macbuntu port cough)

I would also like to know if this is a text file that I may be able to change with vim, emacs, gedit, etc.

More From » command-line


You can move buttons to the right with:

gsettings set org.gnome.desktop.wm.preferences button-layout ':close,minimize,maximize'

or, maybe better to twitch "close" button with "maximize" button:

gsettings set org.gnome.desktop.wm.preferences button-layout ':maximize,minimize, close'

And move them back to the left with:

gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'

To get the current settings, use:

gsettings get org.gnome.desktop.wm.preferences button-layout

See man gsettings for more info, and, as a bonus:

dconf Editor

In this case the changes are made in ~/.config/dconf/user file which is expected to be in the binary dconf (GVDB) database format. Only programs like dconf Editor or gsettings can safely edit this file.

More about:

[#28381] Monday, February 20, 2023, 8 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 336
Total Questions: 133
Total Answers: 98

Location: Zimbabwe
Member since Thu, Jul 21, 2022
1 Year ago