Left favorites bar

Ralf Mardorf kde.lists at yahoo.com
Fri Dec 18 17:36:29 UTC 2020


On Fri, 18 Dec 2020 10:54:52 -0500, Jerry Geis wrote:
>I can "remove" the top bar with this command:
>dbus-send --print-reply --session --type=method_call
>--dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval
>string:'Main.panel.actor.hide();'
>
>is there a similar command for the left favorites bar ?
>I am looking for a command line way to hide it or remove it.

Hi,

I'm not using GNOME, however, for some reason it's installed. Is "bar"
for "panel"?  If so, gsettings or dconf can be used with scripts.

  $ gsettings get org.gnome.gnome-panel.layout toplevel-id-list
  ['top-panel', 'bottom-panel']

  $ dconf dump /org/gnome/gnome-panel/layout/toplevels/
  [bottom-panel]
  animation-speed='fast'
  auto-hide=false
  auto-hide-size=1
  enable-buttons=false
  expand=true
  hide-delay=300
  orientation='bottom'
  size=24
  unhide-delay=100
  y-bottom=0

  [top-panel]
  animation-speed='fast'
  auto-hide=false
  auto-hide-size=1
  enable-buttons=false
  expand=true
  hide-delay=300
  orientation='top'
  size=24
  unhide-delay=100

  $ gsettings --help
  Unknown command --help
  [snip]
    get                       Get the value of a key
    set                       Set the value of a key
  [snip]

"Unknown command --help ;)", it's GNOME/GTK and it's Windows alike
registry.

  $ dconf --help
  error: unknown command --help

  Usage:
    dconf COMMAND [ARGS...]

  Commands:
    help              Show this information
    read              Read the value of a key
    list              List the contents of a dir
    write             Change the value of a key
    reset             Reset the value of a key or dir
    compile           Compile a binary database from keyfiles
    update            Update the system databases
    watch             Watch a path for changes
    dump              Dump an entire subpath to stdout
    load              Populate a subpath from stdin

  Use 'dconf help COMMAND' to get detailed help.

It's nice to use gsettings and dconf by one script, since you always
need to reformat the path by the "set" command or similar. It makes
much GNOME/GTKish sense to use the formatting

org.gnome.gnome-panel.layout

and

/org/gnome/gnome-panel/layout/

for the same path. It's asking for pills and straitjackets. But that's
like GNOME/GTK is.

I used gsettings and dconf a lot by scripts. Apart from a few pitfalls
it works quite straightforward once you get used to insanity.

Regards,
Ralf




More information about the ubuntu-users mailing list