Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-09-14 16:50:28

hameo981
Member
Registered: 2014-09-14
Posts: 3

[Solved] panel behind windows

Hi
I have Arch Linux with XFCE4.
I want to keep my second panel behind all windows. I googled and I did these :

wmctrl -l
wmctrl -i -r 0x01600034 -b add,below


my second panel after these code became at below of all windows . ok, and then I did this :

xfconf-query -c xfce4-panel -p /panels/panel-2/disable-struts -t bool -n -s true

everything seems OK now , but when I reboot or shutdown my system and then come back again and log in, my
second panel is at the top of all windows and I have to do all steps again to keep it below.

How can I fix this ?

Thanks a lot.

Offline

#2 2014-09-14 17:47:20

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,111

Re: [Solved] panel behind windows

There is a startup script in this thread that would do that. However, that script is for setups with just one panel.

There is also a similar startup script in this thread for making all panels (if you have more than one) behind windows.

You're probably going to need to create a new script similar to those that picks out the appropriate panel to lower, and then lower it. If you have 2 panels, and only want the first one to lower, then something like:

#!/bin/bash

# Wait for all panels to load
while [ "$(wmctrl -l | grep -c xfce4-panel)" -lt "2" ];
do
   sleep 0.05s
done

# Determine identifier
ID=$(wmctrl -l | grep xfce4-panel | sed 3p | awk '{ print $1 }' | head -1)
# Place panel at desktop-level
wmctrl -i -r $ID -b add,below

...if its the first one, or change the "head -1" to "tail -1" if you want the second one.

Offline

#3 2014-09-15 15:57:42

hameo981
Member
Registered: 2014-09-14
Posts: 3

Re: [Solved] panel behind windows

thank you for your answer .
can you tell me how I can do this ? sorry I'm new in arch linux and I try to create an startup script but my system crashed and I had to reinstall it !
sorry for my question.

Offline

#4 2014-09-15 17:44:52

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,111

Re: [Solved] panel behind windows

Ugh, how did you try to create the startup script?

Simply create a file with that content, mark the file as executable, and add it to "Settings Manager >> Session and Startup >> Application Autostart". Let me know if you need more detailed instructions.

Offline

#5 2014-09-15 18:47:35

hameo981
Member
Registered: 2014-09-14
Posts: 3

Re: [Solved] panel behind windows

Yes, It works !

thanks a lot for your help ToZ !

I didn't execute it before .

Offline

Board footer

Powered by FluxBB