Xfce Forum

Sub domains

You are not logged in.

#1 2021-02-15 22:03:53

Registered: 2021-02-15
Posts: 4

Panel configuration via command line (CLI)

Challenge is to add a plugins / launcher to the panel via command line.

By manual adding the keyboard-layout plugin while observing
the panel with xconf-query i got this output

xfconf-query -c xfce4-panel -m -v
Start monitoring channel "xfce4-panel":

set: /plugins/plugin-24 (xkb)

(xfconf-query:6693): xfconf-common-WARNING **: 22:58:12.292: Unable to convert GValue to string
set: /panels/panel-1/plugin-ids ((null))


xfconf-query -c xfce4-panel -p /plugins/plugin-24

Now after remove it manually i try to add it via command line:

xfconf-query -c xfce4-panel --create -p /plugins/plugin-25 -s xkb -t string
xfconf-query -c xfce4-panel -p /plugins/plugin-25

But nothing happens, also after a logout/login the value is still there but the plugin does not appear in the channel.
WHat is missing here ?

Is there some more docu about configuring xfce4 via cli ?

Last edited by bschatz (2021-02-15 22:07:07)


#2 2021-02-15 22:41:26

From: Canada
Registered: 2011-06-02
Posts: 7,415

Re: Panel configuration via command line (CLI)

There is also plugin-ids:

xfconf-query -c xfce4-panel -p /panels/panel-1/plugin-ids

...which lists the plugins in order of appearance. There is also the potential need for a ~/.config/xfce4/panel/* entry for some plugins (if they don't use xfconf). It will take some fancy script-foo to process the current list plugin-ids and insert the proper one in the proper place.

Note: xfce4-panel has a parameter that can be used to add a plugin (xfce4-panel -a) but that just adds it to the end.

Also, have a read through this thread which details out the xfconf-query command as well as a contribution from a member on using it to create a default panel layout.


Board footer

Powered by FluxBB