I'm pretty happy with AWN and need no native XFCE panels. I've removed all of them but can't remove the last one remaining. Is there a decent way to do it?
killall xfce4-panel, then save the session to prevent xfce4-panel from starting again.
EDIT: A 'cleaner' way would be to create a ~/.xinitrc and start everything maunally(ie: xfwm4, xfsettingsd, etc).
startxfce4 starts xfce's sessions manager which in turn, starts all that stuff like
xfce4-panel that you don't want.
You could also edit
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml and comment out or delete the
xfce4-panel part, but that is just doing the very same thing xfce4's session saving does via a text file.
You can't delete all panels, the right way of doing this is disable it from autostart.
/etc/xdg/xfce4/xinitrc , find the line to start
Comment it out by placing a
# in front of it , here , change the line 169 to
#$panel , that will solved your issue.
When you want to re-enable panel, just remove the
# at that line.
At the very least, if you cannot remove the last panel from the Panel Preferences, then you can make it as small as possible, move it to the screen's edge and select "Automatically hide and show panel" and Lock Panel. That should minimize the real estate it uses. When I do that with a new panel, I get so rectangle in the corner of the screen that opens to the size of the mouse when I hover over it.
I wasn't able to easily remove it, but I did make it invisible. In my case I wanted to be able to make the screen completely empty. I changed the desktop background to black, removed all of the desktop icons, and put the last panel in the upper left corner of the screen. I enabled the "always hide" option in the panel and set the background of the panel to match the desktop. The panel has a single item to enable easy log out. So if I move the mouse to the upper left I can see the logout button but otherwise the screen is completely empty.
This answer was inspired by llua’s answer and verified on Debian 10.
Open the session settings (eg desktop context menu → Applications → Settings → Session and Startup → Session) and change the “restart style” for
xfce4-panel to “Never”. There is no need to save the session. Log out and log back in, and you should see no panels.
My workaround to stop the loading of the panel entirely ended up following along with both @llua and @daisy's answers on this thread. I wanted the panel gone having created my own
On Manjaro with XFCE, I was able to get things working as desired by editing the XML file in question. As others have noted, the panel is no longer (at least on my Manjaro system) configured in (any instance of) xinitrc. The solution was to delete three lines in
/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml which defined the property responsible for introducing the panel (lines 21-23 in my original file):
21 <property name="Client2_Command" type="array"> 22 <value type="string" value="xfce4-panel"/> 23 </property>
After removing these three lines (requires chmod to make it +r, and sudo) and rebooting, I logged in with the desired behavior -- finally. (One could also comment them out, I
cp'd the file first.)
Note that @llua says editing this file amounts to the same thing as editing the property in xfce4-session-manager's Session and Startup menu, this isn't the case. @Brian Drake had a solution -- changing the restart style of xfce4-panel to "Never". See my comments there, but this totally broke my Xsession, requiring a manual delete of the cache in a tty to be able to even load XFCE again.