You are not logged in.

#1 2012-03-29 12:00:09

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

[SOLVED] Xfce4, panel that at desktop level.

I would like to have a panel that is not always on top.

Reading around I find this solution:

First set an hidden setting on the panel:

$ xfconf-query -c xfce4-panel -p /panels/panel-1/disable-struts -t bool -s true 

Find the panel ID.

$ wmctrl -l | grep xfce4-panel
0x00c00004 -1 mysticalwhatisit xfce4-panel
0x00c00020 -1 mysticalwhatisit xfce4-panel

Put the panel below (by chance as from what I understood you cannot be sure of what is the correct one...).

$ wmctrl -i -r 0x00c00020 -b add,below

It works, but the effect is lost after a xfce restart.
I found a solution about an hackish bash script executed every login, but it seems so crazy... there is really no better way to get a panel that is not always on top?

Last edited by ezzetabi (2012-03-31 07:18:24)

Offline

#2 2012-03-30 09:29:42

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: [SOLVED] Xfce4, panel that at desktop level.

Well, from the lack of answers I guess there is really no other solution. So here is a small bash script that might help everyone with the same problem:

#!/bin/sh

function getPanelIdImpl() {
  PANEL="`wmctrl -l | sed -n -e '/xfce4-panel$/ s_ .*$__ p' | sed -n -e $1' p'`"
}

function getPanelId() {
  getPanelIdImpl $1
  while [[ x == x$PANEL ]] ;do
    sleep 0.5s
    getPanelIdImpl $1
  done
}

function putPanelDown() {
  PANEL=""
  getPanelId $1
  wmctrl -i -r $PANEL -b add,below
}

#putPanelDown 1
#putPanelDown 2

Just call putPanelDown with the panels you want not always-on-top.

Last edited by ezzetabi (2012-03-30 13:27:38)

Offline

Board footer

Powered by FluxBB