Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gsettings]

Questions about using gsettings, the command-line version of dconf-editor, to read or modify the dconf database. Using gsettings, the schemas and keys of various programs can be viewed and altered. Sometimes hidden settings (that are not in the gui of a program) can be discovered this way.

0
votes
0answers
25 views

Change GNOME themes through terminal? [duplicate]

I'm writing a script that downloads applications and changes the application, shell, and icon themes. I know there are ways to change gnome settings through commands (gsettings), but I don't know how ...
5
votes
1answer
137 views

How to run gsettings for another user Ubuntu 18.04.2 LTS

I am trying to run gsettings for another user in Ubuntu 18.04.2 LTS. Specifically, I am attempting to prevent the user's screen from locking. This will be run as part of a bash script. The commands I ...
1
vote
0answers
34 views

When was my gsettings altered last?

Ubuntu 18.04. I set the following command to stop my laptop from suspending, but it appears that it has reverted to the default setting of 1800 when I recently checked. gsettings set org.gnome....
1
vote
0answers
49 views

How to create, configure and apply dconf custom keyfile/gschema for an existing Gnome 3 object?

I want to customise the top panel date time format as a strftime string. I have already achieved this by installing the very splendid 'Clock Override' extension, but looking at dconf documentation, ...
3
votes
1answer
65 views

How do I get the font scaling factor from cli?

How do I get the font scaling factor in Ubuntu? I need to find the appropriate way to get this value for Gnome, KDE and other systems. I need to know which function to call in order to obtain this ...
0
votes
1answer
49 views

Dconf settings in ~/.config/dconf/user.d/ not loaded

I've created valid keyfiles for configuring my Gnome terminal and placed them in ~/.config/dconf/user.d/termnial.conf but those settings are not getting picked up by the dconf system. Is this the ...
0
votes
0answers
16 views

Remote Desktop schema/key error

Problems with remote desktop after update. My remote desktop settings under setup will not start and crashed settings, likewise if I try to access it with other methods. Using dconf, I looked at the ...
1
vote
0answers
133 views

Unable to change desktop background using gsettings in Terminal

I need to change my background wallpaper through terminal. So I entered this line in terminal: gsettings get org.gnome.desktop.background picture-uri 'file:///appdev/wallpaper.jpg' The output is: ...
0
votes
0answers
69 views

dconf database how to remove duplicate & triplicates?

My dconf database ~/.config/dconf/user/ has many entries that are duplicated or triplicated. Some are "normal" single entries. To display gsettings in GUI I used this one-liner answer. Then I: ...
5
votes
1answer
707 views

GNOME Night Light Setting from the Command Line

How do I turn the GNOME night light on or off from the command line? I've got the command gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled but don't know what flag/argument/...
0
votes
0answers
127 views

What is the gsettings equivalent of this dconf command

I am trying to write a bash script that modifies the default gnome-terminal profile (gnome 3). I have read that gsettings is the appropriate interface to use for this, but I can only seem to get the ...
1
vote
1answer
280 views

'gsettings' throws error while setting scroll wheel to switch between windows on Ubuntu 18.04

I have recently upgraded from Ubuntu 16.04 (Unity) to 18.04 (GNOME 3). I am trying to recover some Unity features I enjoy, such as switching between windows with just scrolling the mouse wheel over ...
1
vote
2answers
3k views

Cron not working, although the command works

My crontab is like as follows (I am trying to change my GNOME theme) crontab -l 0 5 * * * /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Adapta' 30 21 * * * /usr/bin/gsettings set org....
3
votes
1answer
127 views

Unable to change theme using terminal but can do via Tweaks

I did gsettings set org.gnome.desktop.wm.preferences theme Adwaita but nothing happens, except that when I do gsettings get org.gnome.desktop.wm.preferences theme I do get Adwaita (But the theme ...
1
vote
1answer
213 views

Energy settings with dconf Ubuntu 18.04 Gnome 3

The energy settings for "Blank screen" is set default on 5 minutes. You can edit them with the gnome-control-center, but I would like to have some dconf / gsettings to change the value. It's about ...
1
vote
1answer
1k views

Edit Gnome-Terminal profile from command line on 18.04

I am attempting to edit Gnome-Terminal profiles from the command line using gsettings. In order to use gsettings I need to know the keys and values contained in each profile. My problem is that dconf-...
1
vote
1answer
63 views

Change media-keys shorcuts in cinnamon

I've installed cinnamon on Ubuntu and I want to create a setup script. Including hotkeys. This post showed me how to add custom key-bindings, great. But how can I add '<Super>1' to the browser (...
4
votes
1answer
199 views

mapping between dconf dump output and gsettings schemas

For example : dconf dump / | grep mouse [org/mate/desktop/peripherals/mouse] .... So if I want to make a gsettings command based on this output, I look to gsettings to list the schemas, but.... (...
0
votes
1answer
339 views

Enable minimize to dock (Ubuntu 18.04)

I am doing the following to enable the minimize to dock function: sudo gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' But it doesn't work! Somebody knows another ...
0
votes
1answer
442 views

No such schema “com.canonical.indicator.datetime"

I am trying to add the year to my clock on my panel. From here https://superuser.com/questions/443982/how-can-i-show-the-current-year-in-ubuntus-clock-indicator-applet gsettings set com.canonical....
0
votes
2answers
78 views

' dconf reset -f / ' will this command remove the data in hard disk of ubuntu or not?

Will the command dconf reset -f / remove data from the hard disk where I've installed Ubuntu?
1
vote
1answer
159 views

Run gsettings with crontab

I've made a simple python script to change my wallpaper (Ubuntu 18.04) by randomly taking an image in a specific folder. I use gsettings command. It works when I run it manually, but I want to ...
0
votes
0answers
263 views

dconf and gettings show different results

My 18.04 laptop is not auto suspending on AC, although I can manually suspend it from the logout dialog, so there is no hardware issue. For testing purposes, I have tried a 60 second suspend. I am ...
0
votes
1answer
61 views

Gsettings wallpaper change error ubuntu 16

I am trying to change the wallpaper in ubuntu using the following code : gsettings set org.gnome.desktop.background picture-uri file:/home/sourajit/Pictures/Wallpapers/skull.jpg However on ...
1
vote
1answer
425 views

How do I disable focus follows mouse?

I have enabled the following. gsettings set org.gnome.desktop.wm.preferences focus-mode 'mouse' Now how can I disable it?
5
votes
1answer
465 views

How to configure a `dconf` key globally across all user accounts

I want to set the 'automount' key, for the ‘media-handling’ schema, to ‘false’, for all users on a single desktop machine. I can do this individually, i.e. one user at a time, by using gsettings ...
1
vote
0answers
280 views

Using `gsettings` to block the mounting of USB drives

I want to configure Ubuntu (16.04) to prevent users from using removable media, specifically USB drives. You can prevent automount as per. gsettings set org.gnome.desktop.media-handling automount ...
1
vote
0answers
89 views

Disable Shutdown and Restart for ALL users

I run a small computer lab for students, consisting of 8 computers running Ubuntu 16.04.4. The students are not used to Linux, so they often confuse Logout with Restart and Shutdown, effectively ...
2
votes
1answer
291 views

Is combinining more than one gsettings options for click-action on Ubuntu dock possible?

I'm using Ubuntu 18.04. I would like to use two different settings for click-action on the Ubuntu dock. gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews' gsettings set ...
19
votes
2answers
4k views

How to turn off on click minimize on dock option on Ubuntu 18.04?

I am using Ubuntu 18.04 and used this command gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' to turn on minimize on dock with single click on icon. How to revert back ...
21
votes
4answers
9k views

Turn off error sound on Ubuntu 18.04

How to turn off Ubuntu error sound(specially on terminal) in Ubuntu 18.04?
2
votes
2answers
1k views

How do I programmatically disable “Connectivity Checking”?

I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings ...
1
vote
0answers
176 views

Ubuntu gnome 17.10 - safe to reset gsettings?

I have a while ago installed a very useless extension to emulate the unity top/menur bar in gnome, which was ruined the menubar in a few applications running on my machine, as shown here and in here. ...
5
votes
3answers
2k views

reset application to its default state

how to reset a program to its default state? in android we can clear application data to reset the application to its default state. does it is possible to reset a program in ubuntu to its default ...
1
vote
0answers
99 views

Set default display scaling factor

I am running Ubuntu 16.04. I am trying to set the default scaling factor for a 4k display. I selected my scaling factor in settings -> display -> 'scale for menu and title bars', and that works for ...
1
vote
1answer
390 views

Bash one-liner to display ALL `gsettings` in Zenity or Yad

Recently I've been encountering many questions in Ask Ubuntu that require changing gsettings to solve the problem. For example this question: How to prevent shutdown when one of two batteries is empty?...
1
vote
0answers
70 views

How to disable/enable ctrl + alt + num pad of window positionting command?

I have referred this Link. According I have followed the instruction and disabled the shortcut keys and checked in dconf-editor it was disabled but the thing is that still shortcut keys are working ...
1
vote
0answers
50 views

Can't change Background after switching to Unity on 17.10

I've decided to use Unity and after installing it I found out that the background image is no more interchangeable (is default Ubuntu). I remove gnome-shell and everything related to it (hopefully not ...
2
votes
1answer
1k views

How do I auto-hide the Ubuntu Dock using gsettings on Ubuntu 17.10 and later?

In Ubuntu 17.04 with Unity I could auto-hide the launcher using this command: dconf write "/org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode" 1 But this does not work in Ubuntu 17.10 ...
0
votes
0answers
107 views

Custom key mappings visible in dconf don't work

I have succeeded in setting custom key commands in the dconf database; the results are visible in dconf editor and using gsettings (see below). However, the entered key mappings don't work. Any ideas ...
1
vote
1answer
92 views

How to disable Toggle Maximization State in Ubuntu 16.04?

How to disable Toggle Maximization State in VM Ubuntu 16.04. I have tried to disable Toggle Maximization State by setting values in dconf database. dconf load / << EOF [org/gnome/desktop/wm/...
1
vote
1answer
151 views

Programmatically set default applications in Gnome?

I want to set Chromium as my default web browser in Gnome. I could use the GUI (Settings → Details → Default Applications), but I much prefer to script such customizations using gsettings or similar ...
3
votes
1answer
471 views

Ubuntu Budgie 17.10 layout switcher shortcut does not rotate

Recently I installed Ubuntu Budgie 17.10 on my Dell XPS15, but currently I am having an issue with layout switching. I've added 3 layouts to my system. Using default key combination to switch layout, ...
1
vote
1answer
69 views

Lock Gsettings Schemas for Only Members of a Certain Group

Does anyone have any idea on a way to lock Gsettings Schemas, so that they can't be overwritten, but only lock them for members of a certain group, so that members of said group can't overwrite the ...
1
vote
1answer
138 views

Ubuntu Font Settings Description

When you go font settings of system, you see Default Font, Document Font, Monospace Font, Window Title Font... But what is document-font and where does it effect?
1
vote
1answer
209 views

cinnamon change name of workspaces by bash

I want to update the names of workspace by bash. When I run: $ gsettings get org.cinnamon.desktop.wm.preferences workspace-names ['0 - Main', 'Project name', 'second project', 'other'] So I try to ...
1
vote
1answer
1k views

How to reset gSettings Key appropriately?

Being a stupid individual and going beyond what I should in trying to play with Ubuntu, I was trying to figure out better scaling when running 17.10 on my Pixel 2. So I tried to enable Fractional ...
0
votes
1answer
339 views

when use “gsettings set org.gnome.desktop.background picture-uri file_path” from root not working

I when use gsettings set org.gnome.desktop.background picture-uri file_path from root not working but run from Anotheruser it`s work. Even when I put it inside crontab -u Anotheruser -e. But not ...
11
votes
2answers
4k views

How can I script the settings made by gnome-tweak-tool?

I like to be able to configure things from the command line, so that when I reinstall the OS I can just run a script and get my preferred configuration back. Since "upgrading" to Ubuntu 17.10, I ...
0
votes
0answers
211 views

Configuring date and time in Ubuntu 17.10 [duplicate]

I like to have the date and time in ISO format (2017-10-30 19:57) on the top right of the screen. I also like to be able to configure things from the command line (an issue not addressed in the ...