You are not logged in.
@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
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
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
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
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
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
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
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
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
Arr, my eyes are bleeding, the ternary operator shouldnt be used that way and that many times unless its a code golfing challenge
Anyway nice wm, im giving a look at it and trying to get the fibonacci layout in it, like it very much :3
Offline
haha, it's kindof a code golf wm
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
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
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
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
I just tried out the fullscreen stuff in monsterwm by cookie and looks like the problem with libreoffice-impress is back.
Offline
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
@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
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:
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
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 putconky &
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
Thanks for the explanation Cloudef. I thought is was something like that.
Offline
fixed
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
Offline
how do you guys get the tags showing?
Offline
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
.:[ git me! ] :.
Offline
I'd like to have this as well, so I checked your comment, quoted here:
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 desktopfor 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 dzen2monsterwm | 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
I hope you like this, I really do. Be creative
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