Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
noob fluxbox question
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Jan 06, 2004 2:13 am    Post subject: noob fluxbox question Reply with quote

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
View user's profile Send private message
jtp755
l33t
l33t


Joined: 01 Sep 2003
Posts: 691
Location: USA

PostPosted: Tue Jan 06, 2004 2:28 am    Post subject: Reply with quote

i think theres a patch on the fluxbox site.
www.fluxbox.org
_________________
www.EternalFireProof.com
Registered Linux User #334610
Back to top
View user's profile Send private message
OpelBlitz
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 229
Location: Chicago, Illinois

PostPosted: Tue Jan 06, 2004 2:54 am    Post subject: Reply with quote

It's possible, I just don't remember how. :) You're gunna be messing with ~/.fluxbox/init thuough
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Jan 06, 2004 3:02 am    Post subject: Reply with quote

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
View user's profile Send private message
OpelBlitz
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 229
Location: Chicago, Illinois

PostPosted: Tue Jan 06, 2004 3:08 am    Post subject: Reply with quote

Excuse me for trying to help!
Back to top
View user's profile Send private message
RJG
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2003
Posts: 109
Location: Toronto, ON, Canada

PostPosted: Tue Jan 06, 2004 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message
primus
Apprentice
Apprentice


Joined: 07 Jun 2003
Posts: 230

PostPosted: Tue Jan 06, 2004 3:37 am    Post subject: Reply with quote

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
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Jan 06, 2004 3:57 am    Post subject: Reply with quote

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
View user's profile Send private message
RJG
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2003
Posts: 109
Location: Toronto, ON, Canada

PostPosted: Tue Jan 06, 2004 4:50 am    Post subject: Reply with quote

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
View user's profile Send private message
revertex_dot_net
n00b
n00b


Joined: 14 Jul 2003
Posts: 39

PostPosted: Tue Jan 06, 2004 7:12 am    Post subject: Reply with quote

Yes, fluxspace is the answer
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Tue Jan 06, 2004 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum