Xfce Forum

Sub domains
 

You are not logged in.

#1 2009-11-28 03:48:28

pablo
Member
Registered: 2009-11-27
Posts: 3

HOWTO: Poor man's panel layering

Howdy,

I thought I'd mention, using `wmctrl', it's easy to set the panel (currently I only have one panel) to be below your windows.  Below is a simple shell script I wrote which pops or pushes my panel.  If I had more than one panel, I'd need to figure out how to identify it using `wmctrl' - although I suspect it may be doable with `devilspie'

pablo@oreo-1016-[bin]: cat toggle_panel_layer
#!/bin/sh

#
# Toggle whether the panel is always on top or always on bottom.
#
# Each subsequent calls flips the state of the panel.
#

wmctrl -r xfce4-panel -btoggle,below

exit $?

My plan is to create a customizable menu item which runs my shell script.

I hope the above idea helps someone.

Cheers,
-pablo

Offline

#2 2009-12-21 23:22:30

alex_dc
Member
Registered: 2009-12-20
Posts: 1

Re: HOWTO: Poor man's panel layering

You put this in the /bin folder? I did so exactly as written, but when I tried to execute the file it gave me the error:

/bin/toggle_panel_layer: 9: wmctrl: not found

Offline

#3 2009-12-22 00:37:58

pablo
Member
Registered: 2009-11-27
Posts: 3

Re: HOWTO: Poor man's panel layering

Hi,

I don't suggest you place the script in `/bin', I'd place it in `~/bin' and ensure $PATH includes `~/bin'

The `wmctrl' error is due to the application not being installed on your machine.

Cheers,
-pablo

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 521.37 KiB (Peak: 532.09 KiB) ]