You are not logged in.
@u_no_hu
It's the tabbed perl extension that causes urxvt to be launched with the -embed option.
When I disable it, everything is all good
Thanks for your help, and great effort on this project. I love it!
___
oew
there's no place like ~/
Offline
I'm getting this error with ./manage.py left
Traceback (most recent call last):
File "./manage.py", line 63, in <module>
(Desktop,OrigXstr,OrigYstr,MaxWidthStr,MaxHeightStr,WinList) = initialize()
File "./manage.py", line 18, in initialize
desk_list = [line.split()[0] for line in desk_output]
IndexError: list index out of range
other arguments fail as well. But I don't think it's a problem with your script, rather the laptop i'm using it on (gnome). wmctrl -d gives me:
$ wmctrl -d
GLib-ERROR **: gmem.c:156: failed to allocate 1117103813820448 bytes
aborting...
wmctrl -l
$ wmctrl -l0x00e00003 139642271694847 minerva Uitgeschoven onderrandpaneel
0x00e00026 4294967295 minerva Uitgeschoven bovenrandpaneel
0x0100001b 4294967295 minerva x-nautilus-desktop
Offline
just upgraded to x86_64 and it seems to have broken this script. it was working perfectly, now i get the same errors as Nepherte above. i get the "list index out of range" error when using any argument and wmctrl -l only shows firefox even tho i also had urxvt open at the time. haven't had much time to troubleshoot but i miss this script already.
//github/
Offline
@brisbin33 & Nepherte
http://bbs.archlinux.org/viewtopic.php?pid=490377 seems to be a problem with wmctrl on 64 bit. Try the solution given there and open a bug report.
Offline
On KDE4.2 (not mod):
toad@archie ~/bin> python tiling
Traceback (most recent call last):
File "tiling", line 162, in <module>
if sys.argv[1] == "left":
IndexError: list index out of range
toad@archie ~/bin> wmctrl -d
0 - DG: 1280x1024 VP: 0,0 WA: 0,35 1280x954 Desktop 1
1 - DG: 1280x1024 VP: 0,0 WA: 0,35 1280x954 Desktop 2
2 - DG: 1280x1024 VP: 0,0 WA: 0,35 1280x954 Desktop 3
3 * DG: 1280x1024 VP: 0,0 WA: 0,35 1280x954 Desktop 4
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
@brisbin33 & Nepherte
http://bbs.archlinux.org/viewtopic.php?pid=490377 seems to be a problem with wmctrl on 64 bit. Try the solution given there and open a bug report.
many thanks; will try the patch tonight (or tomorrow)
//github/
Offline
@toad
you have to pass the options depending on what you want to do
Currently options are
simple - The basic tiling layout . 1 Main + all other at the side.left,right - Does the new windows7 ish style of sticking to the sides.
swap - will swap the active window to master column
Offline
I tryed the patch and tiling now works. Many thanks for pointing out to the topic, I forgot to search for the error first.
Offline
Thanks, u_no_hu
with the simple option I get some kind of success. left,right has no effect and swap comes up with:
toad@archie ~/bin> python tiling swap
Traceback (most recent call last):
File "tiling", line 169, in <module>
swap()
File "tiling", line 156, in swap
active = get_active_window()
File "tiling", line 40, in get_active_window
return str(hex(int(commands.getoutput("xdotool getactivewindow").split()[0])))
ValueError: invalid literal for int() with base 10: 'sh:'
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
@Nepherte If you can file a bug report on that, that will be helpful to others who have the same problem
Offline
@toad output of xdotool getactivewindow ?
Offline
56623106
I've got a number apps open but only kept two on this particular desktop (I am particularly keen on left,right).
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
@toad... then where did that sh: come from ?!!
can you please post output of wmctrl -lG and wmctrl -d
Offline
I did everything from within yakuake... Anyway, off to pub - back in no fit state to follow instructions
toad@archie ~/bin> wmctrl -lG
0x01c001df -1 0 0 1280 1024 archie Qt-subapplication
0x01c0004c -1 775 0 460 35 archie Qt-subapplication
0x01c0006a -1 65 989 141 35 archie Qt-subapplication
0x01c00083 -1 598 0 84 35 archie Qt-subapplication
0x01c00114 -1 93 0 64 35 archie Qt-subapplication
0x01c00120 -1 784 989 374 35 archie Qt-subapplication
0x01c00140 -1 301 0 126 35 archie Qt-subapplication
0x01c00173 -1 321 990 292 34 archie Qt-subapplication
0x068000fe 3 0 58 1280 931 archie Arch Linux Forums / Poor man's Tiling Window manager - Gran Paradiso
0x03600002 -1 64 35 1152 477 archie Yakuake
toad@archie ~/bin> wmctrl -d
0 - DG: 1280x1024 VP: 0,0 WA: 0,35 1280x954 Desktop 1
1 - DG: 1280x1024 VP: 0,0 WA: 0,35 1280x954 Desktop 2
2 - DG: 1280x1024 VP: 0,0 WA: 0,35 1280x954 Desktop 3
3 * DG: 1280x1024 VP: 0,0 WA: 0,35 1280x954 Desktop 4
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
@toad Sticky windows are excluded from tiling and snapping. You dont want all you sticky windows to be tiled ..do you It seems you have lots of them and yakuake is one of them.
Offline
Come back early from the pub - didn't pan out.
I am afraid I have no idea about sticky windows - I thought I was rid of that when I changed over to Linux
Hope whatever info you got out of this for the latest KDE was in any way useful. If you don't come across anyone wiser on KDE I'll be happy to assist further.
If you can cope with the ignorance - I take it as an opening to openbox
Last edited by toad (2009-02-04 20:01:09)
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
I'm getting this error with swap function:
Traceback (most recent call last):
File "/home/bart/Documenten/scripts/tiling.py", line 169, in <module>
swap()
File "/home/bart/Documenten/scripts/tiling.py", line 156, in swap
active = get_active_window()
File "/home/bart/Documenten/scripts/tiling.py", line 40, in get_active_window
return str(hex(int(commands.getoutput("xdotool getactivewindow").split()[0])))
ValueError: invalid literal for int() with base 10: 'sh:'
I'm also a bit confused with the tiling function. I try it out with 2 windows: 1 terminal and one firefox. The program that was started as first will always be put on the left as the main window. Is this normal behavior? Wouldn't it make more sense if it were the active window instead of the one started first?
All considerations aside, I really like your tiling script!
Offline
I'm getting this error with swap function:
Traceback (most recent call last): File "/home/bart/Documenten/scripts/tiling.py", line 169, in <module> swap() File "/home/bart/Documenten/scripts/tiling.py", line 156, in swap active = get_active_window() File "/home/bart/Documenten/scripts/tiling.py", line 40, in get_active_window return str(hex(int(commands.getoutput("xdotool getactivewindow").split()[0]))) ValueError: invalid literal for int() with base 10: 'sh:'
I cant recreate this problem without more info on what you did. Try xdootool getactivewindow in the same terminal in which you got this error. It should return a number (the windowid of the current window). In your case it is returning something else.
I'm also a bit confused with the tiling function. I try it out with 2 windows: 1 terminal and one firefox. The program that was started as first will always be put on the left as the main window. Is this normal behavior? Wouldn't it make more sense if it were the active window instead of the one started first?
Thats exactly what swap will do. Now i dont use "simple" at all. I use swap for everything.
All considerations aside, I really like your tiling script!
Thanks
Offline
Now that's odd. After I installed xdotool the swap function magically works. That makes I have a fully functioning Poor man's Tiling Window manager. w00t
Edit: Not odd at all, manage.py uses xdotool
Last edited by Nepherte (2009-02-05 10:43:08)
Offline
Would it be possible to include maximized windows in the whole tiling thing? Which lines do I have to edit for that?
Offline
just to let you know:
a recent update started producing an error in various programs:
Xlib: extension "Generic Event Extension" missing on display ":0.0".
every search result says basically, "it's a harmless error message, it'll go away next update". this is true, all the programs i see it with work just fine. it does however, break your swap() function for me though:
> python Scripts/manage.py swap
Traceback (most recent call last):
File "Scripts/manage.py", line 169, in <module>
swap()
File "Scripts/manage.py", line 156, in swap
active = get_active_window()
File "Scripts/manage.py", line 40, in get_active_window
return str(hex(int(commands.getoutput("xdotool getactivewindow").split()[0])))
ValueError: invalid literal for int() with base 10: 'Xlib:'
because:
> xdotool getactivewindow
Xlib: extension "Generic Event Extension" missing on display ":0.0".
25165834
not sure if you want to add a workaround or just know that swap() won't work for some people until this bug's squashed upstream.
thanks,
pat
edit: typo and s/most\ people/some\ people//
Last edited by brisbin33 (2009-02-13 17:17:50)
//github/
Offline
@brisbin33
I didnt get that error. May be it has been fixed in testing or latest version or my system likes me . Anyway you can try adding a check for integer to the xdotool output, that would fix it(if not an integer try next line etc....).
Offline
This may not be particularly relevant to this thread, but then it partly is, but I just wanted to get someones opinion on it. What if some form of generic tiling library was made, preferably in C for portability, that was also able to be easily extended, that only handled the tiling _logic_. Then this library could be coupled with various frontends, you could have one for wmctrl + xdotool, and one for win32, and one as a real X window manager etc, it could even be used inside a game GUI. Opinions?
Offline