View previous topic :: View next topic |
Author |
Message |
devsk Advocate
Joined: 24 Oct 2003 Posts: 2998 Location: Bay Area, CA
|
Posted: Tue Jan 06, 2004 2:13 am Post subject: noob fluxbox question |
|
|
I understand that fluxbox doesn't support session management as yet.
Is it possible to start apps during startup in a particular workspace? Sorry if its a repeat but I didn't find any answer in the documentation nor here. |
|
Back to top |
|
|
jtp755 l33t
Joined: 01 Sep 2003 Posts: 691 Location: USA
|
|
Back to top |
|
|
OpelBlitz Apprentice
Joined: 12 Dec 2002 Posts: 229 Location: Chicago, Illinois
|
Posted: Tue Jan 06, 2004 2:54 am Post subject: |
|
|
It's possible, I just don't remember how. You're gunna be messing with ~/.fluxbox/init thuough |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2998 Location: Bay Area, CA
|
Posted: Tue Jan 06, 2004 3:02 am Post subject: |
|
|
I am sorry, but that's hardly useful. I have looked at the website and the online documentation and faqs. Long time back, somebody here even mentioned that they could do it in fluxbox but want to know how to do it in xfce4.
anyone?
PS: I was referring to jtp's response. |
|
Back to top |
|
|
OpelBlitz Apprentice
Joined: 12 Dec 2002 Posts: 229 Location: Chicago, Illinois
|
Posted: Tue Jan 06, 2004 3:08 am Post subject: |
|
|
Excuse me for trying to help! |
|
Back to top |
|
|
RJG Tux's lil' helper
Joined: 07 Feb 2003 Posts: 109 Location: Toronto, ON, Canada
|
Posted: Tue Jan 06, 2004 3:24 am Post subject: |
|
|
What version of fluxbox are you using?
If 0.1.14 do the following:
- nano -w /usr/portage/x11-wm/fluxbox/fluxbox-0.1.14-r2.ebuild
- uncomment the epatch line at line 30:
# Remember patch
#epatch ${FILESDIR}/${P}-remember.patch
- emerge fluxbox
If 0.9.x you don't have to do anything.
Now in fluxbox, right click the windows title bar, and look for "Remember...". In that option there is a "Workspace" option. That window should now open in the current workspace in the future. |
|
Back to top |
|
|
primus Apprentice
Joined: 07 Jun 2003 Posts: 230
|
Posted: Tue Jan 06, 2004 3:37 am Post subject: |
|
|
i was messing around with fluxspace and you can make apps start in a certain workspace... though i didnt get it working perfectly, was just testing it out. _________________
$japh=qq/62D112U107N106E28D89U104N109E89 D86U96N102E14D77U87N106E96D12U68N95E98 D102U101N101E/;
map { $i++ while chop; push (@dune,$i); undef $i; } split /[eE]/;
map { print chr ${\(shift(@dune) + $_)}; } split /[DUNE]/,$japh;
|
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2998 Location: Bay Area, CA
|
Posted: Tue Jan 06, 2004 3:57 am Post subject: |
|
|
RJG wrote: | What version of fluxbox are you using?
If 0.1.14 do the following:
- nano -w /usr/portage/x11-wm/fluxbox/fluxbox-0.1.14-r2.ebuild
- uncomment the epatch line at line 30:
# Remember patch
#epatch ${FILESDIR}/${P}-remember.patch
- emerge fluxbox
If 0.9.x you don't have to do anything.
Now in fluxbox, right click the windows title bar, and look for "Remember...". In that option there is a "Workspace" option. That window should now open in the current workspace in the future. |
Is this feature documented somewhere? because I could see the "Remember.." option but its vague and selecting "Jump to workspace" on or off doesn't make any difference. May be I don't understand how it works. What exactly should it do if "Jump to workspace" is selected? start the app automatically in that workspace during next startup of fluxbox or every instance of that app opens in the same workspace in the same session?
Everything else in that menu is not selectable. This is 0.9.7.
Is it hard to implement a command like:
fbrun --workspace <name> --execute "shell command" ... |
|
Back to top |
|
|
RJG Tux's lil' helper
Joined: 07 Feb 2003 Posts: 109 Location: Toronto, ON, Canada
|
Posted: Tue Jan 06, 2004 4:50 am Post subject: |
|
|
You need to select the "Workspace" one to remember the workspace. Not sure if it's documented, fluxbox's documentation has become somewhat out of date since the move from 0.1.x to 0.9.x.
I also have the problem where it appears the options aren't selected but they in fact are. I thought this was a problem with the fact that I'm using a modified theme and I'd just managed to break something.
A way to set it manually is get the WM_NAME value (fluxbox added a "Tools -> Windowname" option to find it, run the option and click on the window). Once you have the window name you just need to modify ~/.fluxbox/apps to meet your needs.
Here is my entry for aterm which opens it in the first workspace
Code: |
[app] (aterm)
[Workspace] {0}
[Dimensions] {644 418}
[Position] {320 512}
[Shaded] {no}
[Deco] {0x7df}
[Sticky] {no}
[Jump] {yes}
[Layer] {8}
[Close] {yes}
[end]
|
Truthfully I have no idea what the "Jump to workspace" option does, I assumed turning it off would stop focus being moved to newly opened windows, but turning it on/off doesn't seem to make a difference. |
|
Back to top |
|
|
revertex_dot_net n00b
Joined: 14 Jul 2003 Posts: 39
|
Posted: Tue Jan 06, 2004 7:12 am Post subject: |
|
|
Yes, fluxspace is the answer |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2998 Location: Bay Area, CA
|
Posted: Tue Jan 06, 2004 8:04 pm Post subject: |
|
|
RJG wrote: | You need to select the "Workspace" one to remember the workspace. Not sure if it's documented, fluxbox's documentation has become somewhat out of date since the move from 0.1.x to 0.9.x.
I also have the problem where it appears the options aren't selected but they in fact are. I thought this was a problem with the fact that I'm using a modified theme and I'd just managed to break something.
A way to set it manually is get the WM_NAME value (fluxbox added a "Tools -> Windowname" option to find it, run the option and click on the window). Once you have the window name you just need to modify ~/.fluxbox/apps to meet your needs.
Here is my entry for aterm which opens it in the first workspace
Code: |
[app] (aterm)
[Workspace] {0}
[Dimensions] {644 418}
[Position] {320 512}
[Shaded] {no}
[Deco] {0x7df}
[Sticky] {no}
[Jump] {yes}
[Layer] {8}
[Close] {yes}
[end]
|
Truthfully I have no idea what the "Jump to workspace" option does, I assumed turning it off would stop focus being moved to newly opened windows, but turning it on/off doesn't seem to make a difference. |
Actually, I found this to be a very lame feature. It just forces every "xterm" that I open into the same workspace, or same dim or same position etc....just based upon the name.
fluxspace comes with its own baggage...imlib2....and it goes too far to start and stop programs when you enter/leave a w/s, although can be enabled/disabled. I think its too much of w/s mgmt...might be a resource hog too...
I am not even interested in session mgmt. just a plain old mechanism of putting windows of an app in a particular workspace after the startup of the WM thru the .xsession/.xinitrc script. |
|
Back to top |
|
|
|