Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-09-27 19:52:38

adaoduque
Member
From: Brazil
Registered: 2016-09-27
Posts: 3

How to add items to xfce panel in line command

Hi guys.

I want to know how to add items (battery monitor, clock, Notification Area) to panel in command line.

Thank you.

Offline

#2 2016-09-27 23:13:20

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

Re: How to add items to xfce panel in line command

xfce4-panel --add <PLUGIN>

...where <PLUGIN> is the name of the plugin. In your example above, either ""battery" "clock" or "systray". If you have more than one panel, you will be prompted for the panel to use.


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

#3 2016-10-06 12:59:51

adaoduque
Member
From: Brazil
Registered: 2016-09-27
Posts: 3

Re: How to add items to xfce panel in line command

Thank you ToZ.

How do I specify the panel with command line?

Offline

#4 2016-10-06 13:22:59

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

Re: How to add items to xfce panel in line command

adaoduque wrote:

How do I specify the panel with command line?

It doesn't look like you can. If you have more than one panel, you will be prompted via the dialog to select a panel.


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

#5 2016-10-15 02:24:11

adaoduque
Member
From: Brazil
Registered: 2016-09-27
Posts: 3

Re: How to add items to xfce panel in line command

Nice, thank you.

Offline

#6 2018-09-03 10:49:42

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: How to add items to xfce panel in line command

hi, how to add the notification area?
none of these work. No error, but i don't see anything on the panel.

guest@porteus:~$ /usr/lib/xfce4/panel/wrapper-1.0 /usr/lib/xfce4/panel/plugins/libsystray.so 19 14715359 systray Notification Area Area where notification icons appear
guest@porteus:~$ xfce4-panel --add "Notification Area"
guest@porteus:~$ xfce4-panel --add notificationarea
guest@porteus:~$ xfce4-panel --add Notification Area
guest@porteus:~$ xfce4-panel --add NotificationArea

THX

Last edited by johnywhy (2018-09-03 11:23:24)


arch xfce x86_64

Offline

#7 2018-09-03 13:04:36

Spass
Member
From: Poland
Registered: 2016-12-07
Posts: 133

Re: How to add items to xfce panel in line command

johnywhy, Notification Area is in fact "systray", so try this:

xfce4-panel --add systray

Offline

#8 2018-09-03 19:05:14

johnywhy
Member
Registered: 2011-10-09
Posts: 288

Re: How to add items to xfce panel in line command

Awesome, Spass!

Is there any command to remove systray?

THX

Update:
To answer my own question, i think these are clues. Ami on the right track?

Hopefully i can remove simply knowing the name of the panel (panel 1?) and the name of the item (systray)

if you want to delete a property, and all properties beneath it, then you can add the “--recursive” option to the command:
$ xfconf-query --channel 'xfce4-panel' --property '/panels/panel-3' --reset --recursive
https://forum.xfce.org/viewtopic.php?id=8619

-------

Reset (and remove) property /test1 in the channel test (this preserves any properties under /test1, for example /test1/test):
xfconf-query -c test -p /test1 -r

Reset (and remove) property /test1 in the channel test and all properties under it:
xfconf-query -c test -p /test1 -r -R

https://docs.xfce.org/xfce/xfconf/xfconf-query

Last edited by johnywhy (2018-09-06 09:13:32)


arch xfce x86_64

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 546.82 KiB (Peak: 547.66 KiB) ]