save position & desktop of multiple xterms in Fluxbox
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
save position & desktop of multiple xterms in Fluxbox
I realise that the remember patch in Fluxbox is designed to do exactly what its name suggests --- remember where an application was last opened etc. My problem is that I want to open multiple instances of xterm from my .xinitrc and have all of them go to different places --- I am trying very hard to make myself use text apps ... so, on desktop one in Fluxbox I want to run "xterm -e irssi" and "xterm -e top" for example and on destktop two I want "xterm -e mutt" and so on. I am sure you get the picture. I found the groups feature of Fluxbox to be too restrictive because it forced subsequent xterms to open within the others. I suppose I want "xterm -e mutt" to be treated as an application in its own right but I want xterm to open on whichever desktop I am on aswell (my key binding Ctrl+x should open an xterm on whichever desktop I am.)
I hope this is possible.
Cheers.
I don't see how the above resolves the issue about multiple xterms.
I use ~/.xinitrc, I just put them before "exec fluxbox" and I make them run the the background (by appending an #).
With ~/.xinitrc you can set "xterm -e mutt" to run and there is syntax to set the location (with x/y coordinates).
I have done this in the past, but unfortunatly I do not remember the syntax.
This might point you in the right direction, I'm sorry that I don't have the exact command that's needed.
GL
-Jason
Perhaps I was not clear but I have no problems with starting applications automatically with Fluxbox --- .xinitrc works fine. The "remember" function in Fluxbox is great and works for all applications.... even xterm. All of my applications open automatically on the correct desktop, in the right place and they are my preferred size. The problem is when running applications such as mutt and top automatically. Yes "xterm -e application" works fine AND xterm opens where I told it to using the remember patch. The problem comes when I add another xterm to my .xinitrc eg "xterm -e second application" --- this xterm opens in exactly th same location as xterm 1. And the third. And so on --- they are all bound to the position set for xterm using the remember patch.
Username17 - I was thinking the same thing myself. The remember patch stores its data in ~./fluxbox/apps I think. I imagine the co-ordinate syntax will be there. Something like ------ "xterm -e application {co-ordinates}"
------ "xterm -e 2nd application {different co-ordinates}"
should work from my .xinitrc
Thanks for the fast replies. I'll report back on this one later.
You can't ... you can define the size and position. But xterm, rxvt
and the likes have no concept of the windowsmanagers (or DEs)
way of dealing with those things...
xterm -geometry 80x23+100+600 gives the size and position,
there's no way to get it on a different desktop. I thought that
maybe the use of -T or -name would fix the problem of Fluxbox
putting ALL xterms in the same place via remember, but it doesn't.
Yah, earlier I suggested the geometry thing, but that did not help with the multiple virtual desktops.
That would be a great feature, just not possible.
Well, what if you set the position to wider than your resolution.
Lets say your virtual desktops are setup like his:
_______________
|_1_|_2_|_3_|_4_|
800x600 is your resolution. So, set geometry for a window at 801x0.
That (in my mind) should put it in the top left corner of the second desktop.
My reason for thinking this is that in fluxbox you can move windows from one desktop to the other by clicking and dragging. So, if the virtual desktops are next to each other (horizontally), this might work.
I'm at work, so I can't test it, but if someone wants to test it, or just tell me if it won't work, I'd appreciate it.
GL,
-Jason
Last edited by username17; 05-12-2005 at 02:53 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.