Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-01-28 09:18:53

Borzin
Member
Registered: 2020-01-28
Posts: 4

Remove the bottom panel using the terminal.

Hello.

I ask for help. I am repackaging a Debian image and I need to find out a command for the terminal that can remove the bottom panel xfce4 desktop.

Offline

#2 2020-01-28 09:36:22

Aravisian
Member
Registered: 2019-08-17
Posts: 410

Re: Remove the bottom panel using the terminal.

Borzin wrote:

Hello.

I ask for help. I am repackaging a Debian image and I need to find out a command for the terminal that can remove the bottom panel xfce4 desktop.

Can you clarify what you mean by remove?
If you would like to remove/ uninstall:

sudo apt-get remove xfce4-panel

If you want to quit the panel, but not uninstall:

xfce4-panel -q

or

killall xfce4-panel

To restart the panel

xfce4-panel -r

If you want a top panel in XFCE but not a bottom panel, just right click the panel, hover over "panel >" and then in the new pop over, select Panel Preferences. Unselect Lock Panel. Then, move your mouse to the outside edges of the panel where handles appear and drag it to the top.  This way, you will have a Top panel but no bottom panel.

Last edited by Aravisian (2020-01-28 09:36:46)

Offline

#3 2020-01-28 09:48:47

Borzin
Member
Registered: 2020-01-28
Posts: 4

Re: Remove the bottom panel using the terminal.

No. I need to remove (disable) ONLY bottom panel. Not all of them. I not have GUI when repack filesystem.squashfs. Terminal only.

Last edited by Borzin (2020-01-28 09:50:20)

Offline

#4 2020-01-28 10:06:53

Aravisian
Member
Registered: 2019-08-17
Posts: 410

Re: Remove the bottom panel using the terminal.

Borzin wrote:

No. I need to remove (disable) ONLY bottom panel. Not all of them. I not have GUI when repack filesystem.squashfs. Terminal only.

I think I understand.
You have a Debian Based OS you would like to repack. It has a top and bottom XFCE4-Panel using XFdesktop.
You would like to emulate the action performed in "Panel Preferences add/remove panel" (panels are listed as Panel 0, Panel 1 and so on) without access to that GUI "Panel Preferences" in a terminal command- Correct?

Offline

#5 2020-01-28 10:13:13

Borzin
Member
Registered: 2020-01-28
Posts: 4

Re: Remove the bottom panel using the terminal.

You're absolutely right. 100% smile

Offline

#6 2020-01-28 10:41:36

Aravisian
Member
Registered: 2019-08-17
Posts: 410

Re: Remove the bottom panel using the terminal.

I do not know the answer.
I have reasonable confidence that others do. So waiting to see more replies to this thread is a good idea.

In the meantime, maybe I can help to point you in the right direction. Or... mess you up... I could be Wrong in the following:
https://docs.xfce.org/xfce/xfconf/xfconf-query
I suspect that what you may be looking for is an xfconf-query command that you can run in terminal. Or you may need to create a script that can then be run from terminal.
You would need to know the number of the panel that is "bottom panel."

xfconf-query -c xfce4-panel -p /panels

I need to learn more about how it works so this is as far as I can go. But it may give you some things to research and look into while you wait for a more knowledgeable poster to offer a suggestion.

Offline

#7 2020-01-28 11:21:21

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: Remove the bottom panel using the terminal.

Informative thread on xfconf-query to tweak the Xfce panel.

Offline

#8 2020-01-28 12:07:32

Borzin
Member
Registered: 2020-01-28
Posts: 4

Re: Remove the bottom panel using the terminal.

I give up. I tried various combinations. I cant remove panel-2. sad

Offline

#9 2020-01-28 12:44:02

Aravisian
Member
Registered: 2019-08-17
Posts: 410

Re: Remove the bottom panel using the terminal.

alcornoqui wrote:

Informative thread on xfconf-query to tweak the Xfce panel.

That is not a thread, that is a Book.

Borzin wrote:

I give up. I tried various combinations. I cant remove panel-2. sad

I think there is a way, since the command must be sent by the xfce4-panel --preferences application. But... I wonder if we are barking up the wrong tree?

If you are repacking it, what you want is for the version of Debian you are packing to open up with only a top panel? The version you are repacking has more than one?
What if you modify the default.xml in etc/xdg/xfce4/panel/ folder?

Offline

#10 2020-01-28 13:27:21

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

Re: Remove the bottom panel using the terminal.

Aravisian wrote:

What if you modify the default.xml in etc/xdg/xfce4/panel/ folder?

Yes, this is the way the to do it. When a new user is created, Xfce will use the defaults specified in the /etc/xdg sub-folders (note: some distros use other folders - e.g. the Xubuntu session uses /etc/xdg/xdg-xubuntu). Changing the content of the default.xml file to remove all references to panel-2 and it's plugins will result in no panel 2 on first login.

Example default.xml file with panel-2 content removed:

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-panel" version="1.0">
  <property name="configver" type="int" value="@XFCE4_PANEL_CONFIG_VERSION@"/>
  <property name="panels" type="array">
    <value type="int" value="1"/>
    <property name="panel-1" type="empty">
      <property name="position" type="string" value="p=6;x=0;y=0"/>
      <property name="length" type="uint" value="100"/>
      <property name="position-locked" type="bool" value="true"/>
      <property name="size" type="uint" value="30"/>
      <property name="plugin-ids" type="array">
        <value type="int" value="1"/>
        <value type="int" value="3"/>
        <value type="int" value="15"/>
        <value type="int" value="4"/>
        <value type="int" value="5"/>
        <value type="int" value="6"/>
        <value type="int" value="2"/>
      </property>
    </property>
  </property>
  <property name="plugins" type="empty">
    <property name="plugin-1" type="string" value="applicationsmenu"/>
    <property name="plugin-2" type="string" value="actions"/>
    <property name="plugin-3" type="string" value="tasklist"/>
    <property name="plugin-15" type="string" value="separator">
      <property name="expand" type="bool" value="true"/>
      <property name="style" type="uint" value="0"/>
    </property>
    <property name="plugin-4" type="string" value="pager"/>
    <property name="plugin-5" type="string" value="clock"/>
    <property name="plugin-6" type="string" value="systray"/>
   </property>
</channel>

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

#11 2020-01-28 13:38:14

Aravisian
Member
Registered: 2019-08-17
Posts: 410

Re: Remove the bottom panel using the terminal.

Awesome rescue from my bungling.

so would using in terminal:

locate default.xml

then looking for result that is related to xfce4-panel be a start per distro?

Offline

#12 2020-01-28 15:25:01

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: Remove the bottom panel using the terminal.

Aravisian wrote:

so would using in terminal:

locate default.xml

then looking for result that is related to xfce4-panel be a start per distro?

Seems so, it found both:

~$ locate default.xml
/etc/xdg/xdg-xubuntu/xfce4/panel/default.xml
/etc/xdg/xfce4/panel/default.xml

And I'm running the xubuntu session:

~$ env | grep SESSION
XDG_SESSION_ID=c2
DESKTOP_SESSION=xubuntu
XDG_SESSION_TYPE=x11
XDG_SESSION_DESKTOP=xubuntu
GDMSESSION=xubuntu
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0

Offline

#13 2020-01-28 16:52:05

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

Re: Remove the bottom panel using the terminal.

With Xubuntu, if you log in (first time only) with the Xfce session option, it will use /etc/xdg. The Xubuntu session will use /etc/xdg-xubuntu. This is for the first time only as it copies over the default config files at that time.

MXLinux (and Jerry can correct me) seems to use /etc/skel.


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