Forum › Forums › Official Releases › antiX-21/22 “Grup Yorum” › Window tiling, window stuck to top of screen
- This topic has 29 replies, 6 voices, and was last updated Dec 2-9:45 pm by argonaut459.
-
AuthorPosts
-
November 25, 2022 at 4:06 pm #94047Moderator
BobC
::Don’t have multimonitor, this happens with just this single one.
Don’t know if there is any difference, thats the first I found as the CTRL+ command in the FAQ didn’t work.
http://download.tuxfamily.org/antix/docs-antiX-21/FAQ/wingrid.htmlFound these, and something which mention a KP rose (what ever that may be), and changed the first 2 entries to super+left / right, to see if it works.
Mea culpa! I never noticed that FAQ page. I should have updated the FAQ page because I’m the one that changed things. Programs like Firefox were using Ctrl+3, so Wingrid didn’t work right, and we moved the standard WinGrid keys to Alt+Ctrl+3 to avoid the keyboard conflict problems.
I also added the Wingrid on the numeric keypad rose because it was much easier to remember using Ctrl+Shift and point for WinGrid, or Ctrl+Alt and point for WinArrange. I also added the Shrink, Grow, Center and Zoom functions.
I made a video where I used an old PC and pressed the keys to make the window go around and dance. I thought it was pretty cool
.
Oh well.- This reply was modified 5 months, 2 weeks ago by BobC. Reason: snide remark removed
November 25, 2022 at 4:16 pm #94053ModeratorBobC
::PPC, Do you know the correct icesh values to give him left half or the screen and right half of the screen?
He just wants to reassign the 2 keys he liked to those 2 functions. Like this, I think…
key "Super+Left" icesh -f sizeto 50% 100% left key "Super+Right" icesh -f sizeto 50% 100% rightNovember 25, 2022 at 4:43 pm #94057MemberPPC
::Bob – I just restarted my session to test those keybindings- they work, kind of…
To be clear – I’m using a netbook connected to an external monitor and keyboard and mouse, with the internal screen off, so, it’s acting as a “desktop pc”…
I never use both screens, but, when I restart my session/computer, both screens are on, and the tiny internal one is the main one, where the field to enter the password to start the session appears. Just to test, I started my session and tried 3 ways to tile windows, with both screens on:
– none of the tiling options worked correctly – they seemed to get “confused”- sometimes the window did pop to the right part of the external screen, sometimes not, if I try to tile to the left, the window lands down half of the internal screen, half on the external one (that is to the right of the internal one).
–
When I disable the internal screen (and use only the external screen):
– wingrid correctly positions any window (including Min browser)
– icesh correcly positions any window that uses the normal window decorations managed by IceWM- but not, for example Min Browser, that, like Chrome, has it’s own “all in one title bar” that displays tabs, some options and costumized (minimize, restore and close buttons).
– the “Tile” menu options available from the title bar position correctly any window that has a normal title bar (they do not come up in Min, because there is not “title bar” to right click)For some reason my IceWM’s prefoverride does nothing – so I can’t try to map keybindings to try to move any non stardard window (like Min’s)- I’m not sure if that just uses icesh or some other system…
P.
- This reply was modified 5 months, 2 weeks ago by PPC.
November 25, 2022 at 4:50 pm #94059ModeratorBobC
::Yes, I suspected that nothing we already have loaded was going to work well with multiple screens.
You need to visualize it laid out like arandr, and then put the coordinates into a table, and then identify the positions of the screens within, and constrain the movements withing them based on the real coordinates of the overall screenscape, within the screen in focus.
That would complicate the logic and code considerably.
November 25, 2022 at 5:31 pm #94066ModeratorBobC
::Ok, now I see. If a window is maximized, icesh to the right or left doesn’t work. The maximize takes precedence. If I do a Ctrl+Shift+5 on the keypad to put it in the center quadrant, and THEN do Super+right it does work.
Ok, I figured out a way. Restore the window so it isn’t maximized, then resize and move. It needs a split second in between.
key "Super+Left" /bin/sh -c "icesh -f restore && sleep .25 && icesh -f sizeto 50% 100% left" key "Super+Right" /bin/sh -c "icesh -f restore && sleep .25 && icesh -f sizeto 50% 100% right"November 25, 2022 at 8:41 pm #94094Member
blur13
::BobC,
You’re a hero! That also works when windows are “fullscreen”. That has always bothered me, that I could not use keybindings for icesh -f sizeto to tile windows because I always start them in fullscreen. Somehow, wingrid doesnt care that windows are fullscreen and tiles anyways, so I’ve resorted to using that. But as an icewm user, its nice to have that functionality built into the wm itself and not need to depend on an external program. So thanks!
EDIT:
For what its worth, on my system you dont need the sleep 0.25, it works anyways. So try without the sleep command first. Another observation is that even without the sleep command it is noticably slower than simply using icesh -f sizeto, since it has to restore the window before each move. Not a big issue, unless you want the windows to dance around the screen…- This reply was modified 5 months, 2 weeks ago by blur13.
November 25, 2022 at 9:30 pm #94103Member
blur13
::“Somehow, wingrid doesnt care that windows are fullscreen and tiles anyways”
About that, I checked the windgrid script and it uses a program called wmctrl:
# Ensure the active window is not in maximized mode nor in fullscreen mode wmctrl -r :ACTIVE: -b remove,maximized_horz,maximized_vert wmctrl -r :ACTIVE: -b remove,fullscreen # Position and resize the active window wmctrl -r :ACTIVE: -e $GRAVITY,$OFFSETLEFT,$OFFSETTOP,$WINWIDTH,$WINHEIGHTSo wingrid does care about fullscreen and also has to remove it before positioning the window.
EDIT:
Inspired by how wmctrl simply piles the commands, one line at a time, not stringing them with &&, I tried the followingkey “Super+Left” icesh -f restore sizeto 50% 100% left
and it works. And its much faster.
- This reply was modified 5 months, 2 weeks ago by blur13.
- This reply was modified 5 months, 2 weeks ago by blur13.
November 25, 2022 at 10:00 pm #94108ModeratorBobC
::On mine it wouldn’t do the string of commands without the /bin/sh etc, and when it did the restore, but not resize and move, I assumed it needed to do the one first, and complete it before the other, hence the sleep got added. Good for you figuring a better way.
I’ve never actually used icesh before, to be honest, and was experimenting. I have the impression it either didn’t exist or didn’t have as much functionality before. The current IceWM devs have been really improving things, adding features that make it more flexible and comfortable to use.
November 26, 2022 at 5:39 pm #94151Member
argonaut459
::You guys lost me 😆
IIRC, there was a vid on YouTube rather recently (within this year) that showed how tiling works.
Though I think I just watched it to see if it’s actually possible to do that.
Saw the possibility to tile windows in a vid about mx and now I’m looking how to do it on all my other devices.Tiling via the title bar works exactly how I image it, though keyboard shortcuts would be welcome.
About multi monitor.
Isn’t that rather depending if you have a cloned screen or an extended desktop?November 26, 2022 at 6:46 pm #94160ModeratorBobC
::This might work for one screen…
key "Super+Left" /bin/sh -c "icesh -f restore sizeto 50% 100% left"
key "Super+Right" /bin/sh -c "icesh -f restore sizeto 50% 100% right"Look more closely at the keys file to understand what shortcuts are already there.
December 2, 2022 at 4:27 pm #94694Member
argonaut459
::https://www.youtube.com/watch?v=Yk_9biHJWbs
found the video again where I saw the tiling in AntiX, after the ones mentioned in the FAQ didn’t work.
Didn’t watch it all, was just interested in the OEM way of tiling.
As you can see in his video, the windows don’t get the maximize vertical flag my windows get.Is there something else I might have done previously to botch this up?
Edit:
just tried it with a live session, same result there. Maximize vertical is automatically done.
No clue why it happens on my system, but not on the one the guy in the vid uses.Is there a way to use the “anordnen” feature you can do via right click the title bar with keyboard shortcuts?
Doing it via the title bar doesn’t force the max. vert.- This reply was modified 5 months, 1 week ago by argonaut459.
- This reply was modified 5 months, 1 week ago by argonaut459.
December 2, 2022 at 5:14 pm #94702ModeratorBobC
::He understands how it works at least partially, but he didn’t investigate what is already there completely. And he shows you the code for the easy way, but doesn’t try it.
I have no idea what you mean by “anorden”
December 2, 2022 at 5:26 pm #94703ModeratorBobC
::This was made before IceWM added the Tiling options on the Window menu, but the keys are the same and still work today. You have to turn up the volume because my microphone wasn’t very good.
December 2, 2022 at 5:45 pm #94705MemberPPC
::just tried it with a live session, same result there. Maximize vertical is automatically done.
No clue why it happens on my system, but not on the one the guy in the vid uses.It does not happen on any of the computers I ever tested (some half dozen, both 64bits and 32bits, all antix 19/22 full). Never saw anyone complain about that before you…
There are 2 options – since this happens even in a live session – it may be an .iso problem (if you are running live from the same iso you installed you system from) or it may be some kind of video problem. Even in a netbook with very narrow screen, I never experienced that problem.
My suggestion? Try another “full” iso, if you can, and run it live.Question – in the installed system, when you use the “tiling” menu, when you right click the tile bar, do you still have that problem?
Edit:
Is “anordenen” german to ” to order”/ “to arrange”? I looked for that word on-line…If so, you are talking about, what, in english should be the “tiling” feature I mentioned above and the answer is both in one of my previous posts ( https://www.antixforum.com/forums/topic/icewm-moving-windows-with-keyboard-shortcuts/#post-91658 ), here in this thread, and BobC did post a even better option, without the need for wingrid, that you can add to your keys file- https://www.antixforum.com/forums/topic/window-tiling-window-stuck-to-top-of-screen/page/2/#post-94160 . I’m currently using my suggestion to use use the prefoverride file to set the keys to “tile” the window- but this applies only to windows that use the normal window decorations, that show the menu with the “tile” option, when you right click the title bar (I mean this won’t work for Chrome/Chromium, etc). Please don’t skim posts and ask questions that have already been answered on this very thread!
If not, please elaborate what you mean…P.
- This reply was modified 5 months, 1 week ago by PPC.
- This reply was modified 5 months, 1 week ago by PPC.
- This reply was modified 5 months, 1 week ago by PPC.
December 2, 2022 at 9:45 pm #94733Member
argonaut459
::To answer all of you in a bit.
Yes, it is weird and I have no idea why it is happening and doing the max vertical.The right click tiling option in the title bar works fine, as I mentioned above.
Epiphany browser doesn’t have a title bar it seems, so it can’t be tiled at first glance.Sure we could build something else to mitigate the issue, though I’m rather baffled why it only seems to be happening to me.
Can I run the 32bit iso on a more modern PC that needs 5.10 of AntiX to run?
Than I could try it on the normal PC in a live session. And try the 64 bit iso on the same system.PPC, you skim posting the same way, or else you would’ve seen that in mentioned it twice that title bar tiling works as expected. 😉
I just haven’t tried the above mentioned extra commands and scripts yet.
If I wouldn’t have found video again, I would not have realized that he didn’t have the max. Vertical issue.
You wouldn’t have mentioned that you don’t have the same issue.
Hence I would not have thought that I botched something up to cause this.I really get the feeling I’m that tech support customer that needs to be told “did you turn it on?” 😀 😀
Now for real, if the isos on the main pc behave the same it’s probably an issue in the iso
If not, it’s a strange quirk with this system.Why chance something that works for all, that should work here too.
I seen you guys handy with work arounds right away – that’s what everyone’s dream tech support is.TL;DR
I’ll implement your suggestions next time, and will see if the isos on a different system behave the same.Thanks folks
-
AuthorPosts
- You must be logged in to reply to this topic.