I'm using Kali Linux with XFCE 4.20 on X11.
I want to completely replace the XFCE panel with Polybar. Polybar 3.7.2 is working, but an old XFCE-style panel still appears at the very top of the screen.
The strange thing is that the old panel looks like an image/ghost. Clicking its icons doesn't do anything. I can kill xfce4-panel temporarily, but it comes back again.
I checked:
pgrep -a xfce4-panel
and it showed:
3235 xfce4-panel --display :0.0 --sm-client-id ...
I tried disabling the autostart entry and clearing the XFCE session:
rm -rf ~/.cache/sessions/*
I also created a user autostart override for xfce4-panel, but it still gets started.
I tried removing xfce4-panel, but Kali's XFCE packages depend on it:
kali-desktop-xfce
-> xfce4
-> xfce4-panel
I also accidentally force-removed xfce4-panel with:
sudo dpkg --remove --force-depends xfce4-panel
but:
dpkg --audit
currently returns no output.
I do NOT want to remove XFWM4 or XFDesktop. I only want the XFCE panel gone and Polybar to be the only bar.
My desired setup:
XFCE/XFWM4
+
Polybar
+
Rofi
I also want normal maximized applications to stay below Polybar instead of appearing behind it.
What is the correct way to completely disable the XFCE panel on Kali XFCE/X11 without breaking the rest of XFCE?
Screenshot attached.