You are not logged in.

#1 2012-04-29 20:51:57

chiwou
Member
Registered: 2012-04-29
Posts: 11

PekWM+dzen2 = always on top

Hi, I am very new to Linux, but with the help from the wiki and some friends I got a very nice and smooth environment,
now I am trying to setup my PekWM and currently using dzen2 to display some infos (volume/time etc) but its always on top.

its really annoying smile

can you think of an option or maybe have the same issue, help would be much appreciated.
-Chris

Offline

#2 2012-04-29 21:23:58

Bellum
Member
Registered: 2011-08-24
Posts: 230

Re: PekWM+dzen2 = always on top

You might try Openbox. It provides basically the same environment. On one side, it uses xml config files which sucks to edit by hand, on the other I don't think any of the other *boxes implement all of the standards stuff Openbox does, which will prevent applications from behaving awkwardly.

Offline

#3 2012-04-30 12:33:52

chiwou
Member
Registered: 2012-04-29
Posts: 11

Re: PekWM+dzen2 = always on top

mmh thanks, but that doesn't really help, I really like PekWM, its fast and lightweight.
It's the only issue I've, or at least for now wink

Offline

#4 2012-04-30 13:18:01

rabid_works
Member
Registered: 2010-08-15
Posts: 45

Re: PekWM+dzen2 = always on top

What have you tried so far exactly? Have you read the pekwm documentation? have you seen/tried the following solutions on the pekwm bug tracker? https://www.pekwm.org/projects/pekwm/tasks/277

Offline

#5 2012-04-30 13:39:53

chiwou
Member
Registered: 2012-04-29
Posts: 11

Re: PekWM+dzen2 = always on top

Well I tried the dock argument for dzen, but didn't work. Then I tried the auto properties in pekwm to send the panels on the desktop. With the help from the pekwm wiki.

Offline

#6 2012-04-30 14:08:37

rabid_works
Member
Registered: 2010-08-15
Posts: 45

Re: PekWM+dzen2 = always on top

Could you be a little clearer and give a bit more detail please? Firstly, what do you mean by "on top"? Is dzen2 always on the top of the screen or above windows? Also, could you post your autoproperties and any other configuration files that you've tried, please?

If you want dzen on the bottom of the screen have you tried the using

dzen2 -y <pixel>

I used

 dzen2 -Y 1062 

to launch dzen2 and it placed it at the bottom of the screen. There are other solutions on this page

Offline

#7 2012-04-30 14:14:47

chiwou
Member
Registered: 2012-04-29
Posts: 11

Re: PekWM+dzen2 = always on top

dzen is always above all windows

here is the config

#!/bin/bash

# Source settings file
. $HOME/.dzen/settings

# Modify Settings

# Source dzen command
. $HOME/.dzen/command

while :; do

	echo " ^fg($MAGENTA) $(windowname 40 | tr '[:lower:]' '[:upper:]') ^fg($FG) | ^fg($BLUE) $(date +%H:%M)   "

	sleep $SLEEP
done | $DZEN

and here the command

#!/bin/bash
DZEN="dzen2 -ta r -bg $BG -x $X -y $Y -h $HEIGHT -expand l -fn $FONT"

I tried to add a -dock argument, but that didn't help

Offline

#8 2012-04-30 14:21:36

Bellum
Member
Registered: 2011-08-24
Posts: 230

Re: PekWM+dzen2 = always on top

chiwou wrote:

mmh thanks, but that doesn't really help, I really like PekWM, its fast and lightweight.
It's the only issue I've, or at least for now wink

When I say "openbox is the same environment" I mean to say PekWM and Openbox are, for the end user, essentially the same thing. If you like PekWM, you'll like Openbox, though Openbox is more complete and better documented and has more users to help if you run into trouble.

Offline

#9 2012-04-30 14:21:45

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: PekWM+dzen2 = always on top

Try the following:

dzen2 -e 'onstart=lower;button3=exit'

See the readme in /usr/share/doc/dzen2 for more details.

EDIT:

Bellum wrote:

When I say "openbox is the same environment" I mean to say PekWM and Openbox are, for the end user, essentially the same thing. If you like PekWM, you'll like Openbox, though Openbox is more complete and better documented and has more users to help if you run into trouble.

That doesn't change the fact that this problem has absolutely nothing to do with the window manager, but would exist with any stacking window manager, including Openbox.

Last edited by guelfi (2012-04-30 14:25:08)

Offline

#10 2012-04-30 14:36:16

Bellum
Member
Registered: 2011-08-24
Posts: 230

Re: PekWM+dzen2 = always on top

guelfi wrote:

Try the following:

dzen2 -e 'onstart=lower;button3=exit'

See the readme in /usr/share/doc/dzen2 for more details.

EDIT:

Bellum wrote:

When I say "openbox is the same environment" I mean to say PekWM and Openbox are, for the end user, essentially the same thing. If you like PekWM, you'll like Openbox, though Openbox is more complete and better documented and has more users to help if you run into trouble.

That doesn't change the fact that this problem has absolutely nothing to do with the window manager, but would exist with any stacking window manager, including Openbox.

I didn't say necessarily that it did. I wouldn't know, because I don't use dzen. But I'd run into problems with applications not behaving well under Pek before.

Offline

#11 2012-04-30 14:39:37

chiwou
Member
Registered: 2012-04-29
Posts: 11

Re: PekWM+dzen2 = always on top

guelfi wrote:

Try the following:

dzen2 -e 'onstart=lower;button3=exit'

sorry didn't work, the main reason I don't want to use Openbox is the installation size, pekwm is around 4mb and openbox wants 400mb wink

Offline

#12 2012-04-30 14:53:47

Bellum
Member
Registered: 2011-08-24
Posts: 230

Re: PekWM+dzen2 = always on top

Whu? Pacman tells me openbox installs at 2.12mb. Though that's compiled with clang. Clangs binaries are sometimes a little smaller, I suppose with gcc it might be 400mb. tongue

Though PekWM is considerably smaller at less than 1mb and fewer dependencies.

Last edited by Bellum (2012-04-30 15:06:31)

Offline

#13 2012-04-30 16:18:32

rabid_works
Member
Registered: 2010-08-15
Posts: 45

Re: PekWM+dzen2 = always on top

from what I can tell you'll need to compile dzen2 yourself and edit the main.c file as stated by one of the pekwm developers in the link that included in my original post

dzen sets the CWOverrideRedirect flag and therefore pekwm can't do much about it. If you want, you can edit dzen's main.c file and remove "CWOverrideRedirect |" (line 364 for dzen-0.8.5).

Offline

#14 2012-04-30 17:21:55

chiwou
Member
Registered: 2012-04-29
Posts: 11

Re: PekWM+dzen2 = always on top

Pooh smile okay I try, as I said I'm a total Linux noob

Offline

#15 2012-04-30 18:42:17

rabid_works
Member
Registered: 2010-08-15
Posts: 45

Re: PekWM+dzen2 = always on top

perhaps you could try using it with xmobar or an alternative? If you want to compile it yourself I guess you'll need to read up on ABS and makepkg in the wiki...

Offline

#16 2012-05-01 10:34:25

rabid_works
Member
Registered: 2010-08-15
Posts: 45

Re: PekWM+dzen2 = always on top

ok, I had a go compiling dzen2 without "CWOverrideRedirect | " for you. You'll need to install and set up abs as per the archwiki. I had to add 

-lXss

to the LIBS="" line in the dzen2 PKGBUILD -- mine looks like this :

 LIBS=" -L/usr/lib -lc -L${X11LIB} -lXss -lX11 -lXinerama -lXpm `pkg-config --libs xft`"

-- in order to get dzen2 to compile ; you may need to do the same.
Once it compiled I removed "CWOverrideRedirect | " from line 364 in the main.c file, and then ran :

makepkg -g >> PKGBUILD

followed by

makepkg -efi

There may be better ways of doing this but it seems to build fine and gets the result you were looking for. I guess you'd just need to set it up with the correct pekwm autoproperties to have it recognised as a dock, a titleless window, etc.

Offline

#17 2012-05-01 16:03:59

chiwou
Member
Registered: 2012-04-29
Posts: 11

Re: PekWM+dzen2 = always on top

thanks for the help, it's much appreciated

will try it asap smile

//edit
mmh that's weird now it shows nothing, I tried to reinstall dzen, but no luck, used the the aur git version and now it shows my configs again,
maybe the first time I installed without thinking about it, the git version.

and in the pkgbuild there is no LIBS line and in the main.c there are multiple CWOverrideRedirect but none at the line 364.

okay now I'll try openbox wink

Last edited by chiwou (2012-05-01 16:21:06)

Offline

#18 2012-05-01 16:54:00

Bellum
Member
Registered: 2011-08-24
Posts: 230

Re: PekWM+dzen2 = always on top

chiwou wrote:

thanks for the help, it's much appreciated

will try it asap smile

//edit
mmh that's weird now it shows nothing, I tried to reinstall dzen, but no luck, used the the aur git version and now it shows my configs again,
maybe the first time I installed without thinking about it, the git version.

and in the pkgbuild there is no LIBS line and in the main.c there are multiple CWOverrideRedirect but none at the line 364.

okay now I'll try openbox wink

He means for you to use the official PKGBUILD, not the one from the AUR. Read up on the Arch Build System on the wiki.

https://wiki.archlinux.org/index.php/Arch_Build_System

Offline

#19 2012-05-03 18:57:39

chiwou
Member
Registered: 2012-04-29
Posts: 11

Re: PekWM+dzen2 = always on top

okay after some tries, I found some weird behavior
if I use the official dzen version (with/without CWOverride hack), I can't use my configs (colour and font problems), if I use the git version I can use my configs, but then the always on top problem occurs.

then I tried Openbox and bahm same problems big_smile so it has nothing to do with the windowmanager, now I try to mod my configs and parallel I'll try xmobar

thanks for all your help
take care
-Chris

Offline

Board footer

Powered by FluxBB