1

I'm using Ubuntu 18.04.5 LTS.

I need to move "notification day and time" to right side corner. Right now it is located at middle of the screen.

I'm unable to install Gnome tweak tool. Can anyone help to move notification other than installing gnome tweak tool idea?

enter image description here

PRATAP
  • 22,460
sivasdpi
  • 213
  • 3
    The GNOME desktop environment is not really designed to prioritize extensive customization of the UI elements, which is why additional software like "tweaks" are needed to add a few additional customization options. The GNOME devs prioritize consistency and ease-of-use above user customization. If you want/need to relocate elements of the UI, you might consider using a different desktop environment like KDE (Kubuntu) or Xfce (Xubuntu). You can boot these flavors from a live session to test them out without having to install anything. – Nmath Jun 16 '21 at 16:41
  • 2
    The short version of the above comment is "No". – ChanganAuto Jun 16 '21 at 16:47
  • Have you considered installing Cinnamon? – Raffles Jun 16 '21 at 16:55
  • This os version is much comfortable for my work. So can't change – sivasdpi Jun 16 '21 at 16:58
  • @sivasdpi gnome-tweaks can't help for your requirement. gnome extensions can help in achieving close to your requirement. Are extensions Ok for you? – PRATAP Jun 17 '21 at 02:43
  • Yes pls. Suggest how to do using extensions @unknown – sivasdpi Jun 17 '21 at 03:48
  • https://extensions.gnome.org search for "dash to dock" and "dash to panel" I think 18.04 gnome-shell version is 3.36 so select this version and down load zip files. Then I will give commands to install extension. – PRATAP Jun 17 '21 at 03:52
  • Once zip files are downloaded.. follow the steps from here.. https://askubuntu.com/a/1232696/739431 – PRATAP Jun 17 '21 at 03:55
  • From above link, Commands 4 and 6 needs variables based on your preferred extension. Dash to Panel. Or Dash to Dock. – PRATAP Jun 17 '21 at 04:11
  • are you looking for something like this?? https://i.stack.imgur.com/5ZxFt.jpg

    https://i.stack.imgur.com/TV8Zg.jpg

    – PRATAP Jun 17 '21 at 07:58
  • You are correct , @unknown. Like that i need. Can u pls do this all for me via screen sharing ? Will fix time, day to do. Pls give ur email id . – sivasdpi Jun 17 '21 at 15:14
  • Hi Just one single line command is required in terminal. Do you want like 1st image or 2nd Image? – PRATAP Jun 17 '21 at 15:46
  • Like 1st screen and 12 hrs clock time format – sivasdpi Jun 17 '21 at 16:55
  • The time format will be as per your screen shot. I will write command in Answer. In few minutes. – PRATAP Jun 17 '21 at 18:13

1 Answers1

0

To move to the Right side run the below command.

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval string:'Main.panel._centerBox.remove_child(Main.panel.statusArea.dateMenu.container); Main.panel._rightBox.insert_child_at_index(Main.panel.statusArea.dateMenu.container, 0);'

To make it to normal, run the below command.

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval string:'Main.panel._rightBox.remove_child(Main.panel.statusArea.dateMenu.container); Main.panel._centerBox.add_child(Main.panel.statusArea.dateMenu.container);'

You need to add the first command to startup applications list for persistence. Otherwise after every logout and login, you need to run the first command.

enter image description here

PRATAP
  • 22,460
  • do just above two commands sufficient or do I need to install extensions which u had said earlier ? – sivasdpi Jun 18 '21 at 16:38
  • No need extensions – PRATAP Jun 18 '21 at 16:48
  • I had attached above error. It's better we can do screen sharing and rectify it. Pls send your email address. – sivasdpi Jun 19 '21 at 16:31
  • First command worked. But after logged out again notification came to center. How to add the first command to startup applications list for persistence? – sivasdpi Jun 20 '21 at 07:35
  • https://help.ubuntu.com/stable/ubuntu-help/startup-applications.html.en – PRATAP Jun 20 '21 at 08:02
  • Are chrome notifications some how different? This is definitely not working on 21.10. – mathtick Feb 02 '22 at 09:42
  • @UnKNOWn which gnome extension and how to activate? Just tried panel osd and no good so far ... can't even find it once installed. – mathtick Feb 02 '22 at 10:41
  • @UnKNOWn ah got it now ... SUPER unintuitive. You go to this site https://extensions.gnome.org/extension/708/panel-osd/ and "ON" to install. THEN CRITICALLY YOU NEED TO RELOAD THE SITE! Then you get a settings option there next to the install buttons. There you change things. I don't understand how this works from a site. Seem crazy. Will this work offline? – mathtick Feb 02 '22 at 10:43