Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3693  / 3 Years ago, thu, june 3, 2021, 4:32:56

I have a fresh installation of 20.04 LTS, I have installed gnome-flashback with:

sudo apt-get install gnome-session-flashback -qq

After logging in in the gnome-flashback Xsession I would like to execute three actions from the command line:




  1. Remove the whole bottom panel

  2. Add a Trash icon to the top panel (placed at the left, before the left-bar)

  3. Add "Window List" to the top panel (placed at the right, after the main menu)



Screenshot of a virtual machine with desired output:



enter image description here



I think this should be possible to achieve with gsettings, right?

I have been playing around with manual adjusting the panel elements and simultaneous inspecting the changes with dconf watch /, however, I was not able to replicate the commands that would lead to the desired acion...


More From » 20.04

 Answers
3

One way could be to start with existing layout file - /usr/share/gnome-panel/layouts/ubuntu.layout. Copy that layout as my-layout.layout in same directory.



Edit layout file to match your needs:

- Remove whole [Toplevel bottom-panel] group;

- Remove [Object show-destkop] group;

- Remove [Object workspace-switcher] group;

- Under [Object window-list] group change toplevel-id from bottom-panel to top-panel;



Above should give you only top panel with menu-bar, window-list and indicators applets.



To add trash applet you will need following changes:

- Make sure gnome-applets are installed;

- Add new group:



[Object trash]
object-iid=TrashAppletFactory::TrashApplet
toplevel-id=top-panel
pack-type=end
pack-index=1


When layout file is ready do following things:

- gnome-panel --replace & to "detach" panel from session;

- killall gnome-panel to kill/stop it. Without above it will be restarted automatically.

- dconf reset -f /org/gnome/gnome-panel/ to remove existing configuration;

- Change default layout with gsettings set org.gnome.gnome-panel.general default-layout "my-layout".



Now you can restart panel with gnome-panel & or reboot. You should get your layout if I have not made some mistake. Sorry, this is untested!


[#3305] Saturday, June 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
itutejagua

Total Points: 89
Total Questions: 124
Total Answers: 113

Location: British Indian Ocean Territory
Member since Sun, Feb 13, 2022
2 Years ago
;