You are not logged in.

#201 2012-01-16 13:41:32

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: monsterwm! ~ yet another tiny wm

@Army

Ok, could you check if the CPU usage is better now? I'm doing usleep(1000) when there are no events to be polled.
I would've used xcb_wait_for_event instead of polling, but doing that seems to break monsterwm for some reason.

Also, I can't seem to reproduce the fullscreen issues you are having. Luakit, opera, mplayer, comix.. All seem to work fine in different kinds of situation when switching to fullscreen and back. If you find the steps to reproduce it, that would be neat!

Last edited by Cloudef (2012-01-16 13:42:08)

Offline

#202 2012-01-16 16:06:32

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: monsterwm! ~ yet another tiny wm

I saw you changed a little bit in the code. But the fullscreen issue is here, definitely. I hit F11 in luakit, it goes fullscreen, but then F11 is supposed to revert fullscreen, but it doesn't do anything anymore. About the thing with libreoffice-impress, I made a short video, see here, recorded with xvidcap.

Offline

#203 2012-01-16 16:42:53

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: monsterwm! ~ yet another tiny wm

Army wrote:

I saw you changed a little bit in the code. But the fullscreen issue is here, definitely. I hit F11 in luakit, it goes fullscreen, but then F11 is supposed to revert fullscreen, but it doesn't do anything anymore. About the thing with libreoffice-impress, I made a short video, see here, recorded with xvidcap.

Ok, with libreoffice I was able to reproduce. monsterwm-xcb seems to segmentation fault when doing that smile

Edit:
Ok, I commited something. Could you check that it works.
http://cloudef.eu/armpit/fullscreen_works.mkv

Last edited by Cloudef (2012-01-16 17:23:59)

Offline

#204 2012-01-16 18:00:21

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: monsterwm! ~ yet another tiny wm

I'm sorry to say this, but it's exactly like it was before, only the problem with the cpu usage seems to be solved. Since this seems to become more complicated, I filed a bugreport

Last edited by Army (2012-01-16 18:05:07)

Offline

#205 2012-01-16 19:58:15

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: monsterwm! ~ yet another tiny wm

Army wrote:

I'm sorry to say this, but it's exactly like it was before, only the problem with the cpu usage seems to be solved. Since this seems to become more complicated, I filed a bugreport

I think I've fixed this issue, your link at previous page gave me a clue. Could you check with latest git?

Offline

#206 2012-01-16 22:46:04

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: monsterwm! ~ yet another tiny wm

Unfortunately it's not solved. More infos in the bugreport. I really hope that I'm not just too stupid, I really start wondering why our behaviors are so different. Maybe a xephyr thing??

Offline

#207 2012-01-17 09:25:40

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: monsterwm! ~ yet another tiny wm

Not related to the issue above, but I noticed bug in vanilla monsterwm. When you start libreoffice and you get that splash screen, the libreoffice window does not get focused when splash screen dies, there is also potential segmentation fault here if you try to change focus with alt+j/k keybindings.

Offline

#208 2012-01-17 17:30:56

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: monsterwm! ~ yet another tiny wm

hmm, I don't use libreoffice (only plain text or markdown and if needed export those to html). I'll check and see what I can do.


.:[ git me! ] :.

Offline

#209 2012-01-17 17:47:26

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: monsterwm! ~ yet another tiny wm

I don't either, but just happened to see that when I was testing libreoffice for the issues Army mentioned.
Speaking of which, @Army, did you check my latest post on the issue page @ github?

Last edited by Cloudef (2012-01-17 17:48:05)

Offline

#210 2012-01-17 20:33:59

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: monsterwm! ~ yet another tiny wm

Arr, my eyes are bleeding, the ternary operator shouldnt be used that way and that many times unless its a code golfing challenge smile
Anyway nice wm, im giving a look at it and trying to get the fibonacci layout in it, like it very much :3

Offline

#211 2012-01-17 21:36:04

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: monsterwm! ~ yet another tiny wm

haha, it's kindof a code golf wm tongue 

Cloudef wrote:

I noticed a bug in vanilla monsterwm: when you start libreoffice and you get that splash screen, the libreoffice window does not get focused when splash screen dies, there is also potential segmentation fault here if you try to change focus with alt+j/k keybindings.

fixed wink

EDIT: refixed, as before, there was another focusing problem when libreoffice was closed.
That behavior was rather strange, I guess libreoffice spawns some windows before opening and closing the main libreoffice-writer window. anyway, it should be sorted out now.

Last edited by c00kiemon5ter (2012-01-18 02:09:32)


.:[ git me! ] :.

Offline

#212 2012-01-19 19:02:49

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: monsterwm! ~ yet another tiny wm

I've pushed dualhead branch for those with multiple monitors.
https://github.com/Cloudef/monsterwm-xcb/tree/dualhead

Code still fresh, testers and bug reports welcome.

Offline

#213 2012-01-19 19:21:22

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: monsterwm! ~ yet another tiny wm

smile smile

also, an update on config, you can now set the specified apps to spawn floating
see the new rule ("float" column) on config.def.h

Last edited by c00kiemon5ter (2012-01-20 00:29:10)


.:[ git me! ] :.

Offline

#214 2012-01-20 00:08:44

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: monsterwm! ~ yet another tiny wm

I just tried out the fullscreen stuff in monsterwm by cookie and looks like the problem with libreoffice-impress is back.

Offline

#215 2012-01-20 00:22:58

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: monsterwm! ~ yet another tiny wm

hmmm, installing to try it out

edit: definately works here

installed libreoffice-impress
opened testing ppt (found on google "test ppt file")
F5 fullscreen works as expected
Selecting the icon fullscreen works
Fullscreen from the menu works

Last edited by c00kiemon5ter (2012-01-20 00:30:12)


.:[ git me! ] :.

Offline

#216 2012-01-20 01:28:54

kuraku
Member
From: planet Earth
Registered: 2012-01-03
Posts: 202

Re: monsterwm! ~ yet another tiny wm

@c00kiemon5ter

If i want to change default desktop on start, i should change this (right?):

#define DEFAULT_DESKTOP 0

If i put there 1 (to activate desktop #2), i got this error:

X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  19 (X_DeleteProperty)
  Atom id in failed request:  0x0
  Serial number of failed request:  7
  Current serial number in output stream:  8
0:0:2:0:0 1:0:2:1:0 2:0:2:0:0 3:0:2:0:0 4:0:2:0:0

I'm unable to load any program or use keyboard at all. What could cause this?

Offline

#217 2012-01-20 03:35:11

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: monsterwm! ~ yet another tiny wm

fixed wink


.:[ git me! ] :.

Offline

#218 2012-01-20 07:52:08

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: monsterwm! ~ yet another tiny wm

I've been using just conky by itself for the status part of the bar. It seems to work good (at least on a black background). Here's a screenshot:  tY2NqdQ
I just put

conky &

in my startup script and I get this when I log out of X

XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after XX requests (XX known processed) with 0 events remaining 

. I changed it to

conky > /dev/null 2>&1

to shut it up. What's the right way to do this? Anyway, keep up the good work guys.

Last edited by stlarch (2012-01-20 07:53:29)

Offline

#219 2012-01-20 08:20:10

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: monsterwm! ~ yet another tiny wm

stlarch wrote:

I've been using just conky by itself for the status part of the bar. It seems to work good (at least on a black background). Here's a screenshot:  http://ompldr.org/tY2NqdQ
I just put

conky &

in my startup script and I get this when I log out of X

XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after XX requests (XX known processed) with 0 events remaining 

. I changed it to

conky > /dev/null 2>&1

to shut it up. What's the right way to do this? Anyway, keep up the good work guys.

Monsterwm seems to send WM_DELETE_WINDOW signal to every window on exit, this might be good thing or bad thing depending, if you just want to switch window manager and not want every application to exit.

Anyways, in conky's case. Either monsterwm quits too fast or conky does not respond to WM_DELETE_WINDOW. Anyways the "error" is nothing serious. It just says that X server is no longer available and hence conky can't access it and was killed because of it. (Since there is no X, all X resources should be freed, and Linux memory managment will handle the applications memory)

Offline

#220 2012-01-20 08:52:36

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: monsterwm! ~ yet another tiny wm

Thanks for the explanation Cloudef. I thought is was something like that.

Offline

#221 2012-01-20 21:29:30

kuraku
Member
From: planet Earth
Registered: 2012-01-03
Posts: 202

Re: monsterwm! ~ yet another tiny wm

c00kiemon5ter wrote:

fixed wink

Thank you, it is working now.

Other than porting it to xcb (maybe) and multi monitor support, there is not anything that we need anymore.

p.s. We can manage to set up one bug squashing day when you think that you added everything to monsterwm that you want smile

Offline

#222 2012-01-20 22:37:11

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: monsterwm! ~ yet another tiny wm

how do you guys get the tags showing?

Offline

#223 2012-01-20 22:38:36

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: monsterwm! ~ yet another tiny wm

clouddef has been working on xcb and multimonitor. xcb is pretty good with the latest commits earlier today wink


.:[ git me! ] :.

Offline

#224 2012-01-20 22:43:25

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: monsterwm! ~ yet another tiny wm

el mariachi wrote:

how do you guys get the tags showing?

monsterwm outputs info about the desktop and windows on stdout. you need to parse that and pipe it to a panel like dzen2 or conky or the panel moetunes built; some sorta bar. check around page 5 for sample parsing code wink


.:[ git me! ] :.

Offline

#225 2012-01-21 00:09:18

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: monsterwm! ~ yet another tiny wm

I'd like to have this as well, so I checked your comment, quoted here:

c00kiemon5ter wrote:

Latest commit implements, outputing some desktop information. More specific, the wm outputs on every window change (addition/removal of window) the window count on every desktop in the following format:

(desktop:window_count )*desktop:window_count

that is, the desktop number,
followed by ':',
followed by the window count on that deskop,
followed by a single space if it's not the last desktop,
and a new line if it's the last desktop

for example, if I have 4 desktops, here's a typical output:

0:3 1:0 2:12 3:1

this means that desktop 0(the first one) has 3 windows, desktop 1 has no windows, desktop 2 has 12 windows and desktop 3(the last one of four) has 1 window

so one can now parse that output as he likes,
eg. using bash to format the output and display it with dzen2

monsterwm |  while read -r; do             # filter the output
    if [[ $REPLY =~ ^([[:digit:]]+:[[:digit:]]+ ?)+$ ]]; then
        sed -r 's/0:/web:/                 # rename desktop 0 to 'web'
                s/1:/chat:/                # rename desktop 1 to 'chat'
                s/2:/foo:/                 # rename desktop 2 to 'foo'
                s/3:/porn:/                # uhm.., someone is watching pr0n
                s/([^[:space:]]+):([[:digit:]]+)/[ \1 \2 ]/g' <<< "$REPLY"
    fi | dzen2 -h 18 -w 200 -ta -e -p l    # 18px height, 200px width, left align text

which would create a panel on top left corner, with 18px height, 200px width and left aligned text, displaying:

[ web 3 ] [ chat 0 ] [ foo 12 ] [ porn 1 ]

One can even not display a desktop if it has no windows, or not display the window count if it's zero, or get away with the '[ .. ]' thing and come with his own format.

The wm implies no formatting, so the user can format the output as he desires. All the wm knows is that some desktops exist. Those are 0 .. DESKTOPS-1. The wm doesn't care about any names and has nothing to do with displaying a panel.
That way, the wm(monsterwm) has been separated from the panel(dzen2) concept. One "talks" to the other through text, as is the UNIX way.

Here's a couple of shots:

http://ompldr.org/tYng4NQ   http://ompldr.org/tYng4OA

If you're interested in the above, see my script that fires up the wm for me. I don't name any desktop, but it can be done as shown above, all I do is display the window count, minimal and informative smile

I hope you like this, I really do. Be creative wink Any feedback is welcome.

Hey, I'd like to have the workspaces and number of clients in a dzen2 statusbar. Your script looks very nice, but a bit too complicated for me, so I need some help figuring out, why I don't see anything. Here's what I got so far

#!/usr/bin/env bash

: "${wm:=monsterwm}"
: "${ff:="/tmp/${wm}.fifo"}"

conky | dzen2 -h 12 -w 1440 -ta r -e -p -fn "-*-terminusmod.icons-medium-r-*-*-12-*-*-*-*-*-*-*" -fg '#ffffff' -bg '#000000' &

[[ -p $ff ]] || mkfifo -m 600 "$ff"
while read -r
do [[ $REPLY =~ ^([[:digit:]]+:[[:digit:]]+ ?)+$ ]] && sed -r 's/([^[:space:]]+):([[:digit:]]+)/ [ \2 ]/g' <<< "$REPLY"
done < "$ff" | dzen2 -h 12 -w 200 -ta l -e -p -fn "-*-terminusmod.icons-medium-r-*-*-12-*-*-*-*-*-*-*" -fg '#ffffff' -bg '#222222' &

while :; do "$wm" || break; done | tee -a "$ff"

The conky bar shows up just fine. The bar which is supposed to contain the information about the workspaces shows up (I made the background brighter so I can see it), but it doesn't show anything. Is this script still working for you Cookie?

Last edited by Army (2012-01-21 00:11:51)

Offline

Board footer

Powered by FluxBB