4

I want to show date in top bar using gnome-tweak-tool. I get the GUI solution How to show date in top bar of deskop in ubuntu 18.04 LTS?

enter image description here

I want to get the CLI solution so that I can add this in my post OS installation script.

This question may be helpful to answer this question. How can I script the settings made by gnome-tweak-tool?

pomsky
  • 67,112
  • 21
  • 233
  • 243
alhelal
  • 2,541
  • 6
  • 26
  • 44

1 Answers1

4

Open Terminal and run

gsettings set org.gnome.desktop.interface clock-show-date true

to enable the option to show date in top bar.

pomsky
  • 67,112
  • 21
  • 233
  • 243
  • Thanks. I like your solution. would you tell me from where you get the key `clock-show-date`? That helps me get another key also. – alhelal May 25 '18 at 16:46
  • 1
    @alhelal You can install dconf-Editor (GUI application) and browse all the keys and schemas. – pomsky May 25 '18 at 17:00
  • Am I right that `dconf-editor` is a very promising answer to [OP‘s other question](https://askubuntu.com/questions/971067/how-can-i-script-the-settings-made-by-gnome-tweak-tool)? If so, please write an answer about it there! – dessert May 25 '18 at 21:11
  • @dessert Hmm... that question has couple of really good answers, but I believe OP (and others) would find this very helpful: https://askubuntu.com/questions/522833/how-to-dump-all-dconf-gsettings-so-that-i-can-compare-them-between-two-different – pomsky May 25 '18 at 21:25