After installing a new distribution in my computer, I usually want to make some tweaks to gnome. In this post I’m going to explain how to do these tweaks from the command line, so they can be scripted.


Gsettings is a command-line tools that allows us to modify gnome settings. To modify a setting we can use the set command. The format is like the following:

gsettings set SCHEMA[:PATH] KEY VALUE

This means, to modify a setting we need to know its schema and path. We can list all the schemas using:

gsettings list-schemas

But it might still be hard to find the schema and path we need to modify. What I have found more effective is to google for the setting I’m interested in.

Keyboard shortcuts

One of the things I usually modify is keyboard shortcuts. The schema for modifying keyboard shortcuts is: To see which shorcuts are available by default we can use list-keys:

gsettings list-keys

To set the shortcut for openning the terminal, I used this command:

gsettings set terminal "['<Ctrl><Alt>t']"

Hide dock

gsettings set autohide false
gsettings set dock-fixed false
gsettings set intellihide false

Show battery percentage

gsettings set org.gnome.desktop.interface show-battery-percentage true


We can configure most things about gnome with gsettings, the only problem is finding which setting needs to be changed. So far, the best I have found is to use Google to find the correct setting.

[ linux  automation  bash  ]
Managing Kubernetes Applications with Helm
Managing Kubernetes Objects With Yaml Configurations
Change video resolution using ffmpeg
Configuring gnome terminal programmatically
Hide snap folder in Ubuntu