After installing plank and realizing its advantages, I decided to fully close Xfce4-panel, but shortly after I noticed there are some items that cannot be displayed on Plank, so I had to re-initiate Panel again, and that is always accompanied with delays.
Is there any command for toggling panel? (hiding and unhiding)
I made a little script to toggle hiding/unhiding the xfce panel. I found the code here that I modified for this use case, but I guess it could be modified for any possible use case.
So here is the bash script (saved as togglepanel.sh):
Then in Keyboard settings tab Application shortcuts, you click add, click on the file browse icon and select the bash script, then press the preferred shortcut key.
Maybe it’s even possible to toggle between all 3 settings by modifying the script and add an ifelse command or something.
Edit: I just noticed that I’m posting in the Manjaro xfce forum, while I forgot I just switched to Mint xfce for the moment (no good reason). I just tested via a Manjaro live-usb boot and it works there as well.
The only difference is that the first panel in Mint is panel-1, while in Manjaro it’s panel-0 (why???). I already modified the above code block so it’s correct for Manjaro xfce.
[Line 1:](javascript:setPosition(1, 1))
current_panelsetting=$(xfconf-query -c xfce4-panel -p /panels/panel-0/autohide-behavior)
^-- [SC2148](https://www.shellcheck.net/wiki/SC2148) (error): Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.