Xfce Forum

Sub domains
 

You are not logged in.

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

bschatz
Member
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
xkb
**************

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
xkb
****************************

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)

Offline

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

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,017

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.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB