LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2014, 07:08 AM   #1
Haines
LQ Newbie
 
Registered: Mar 2014
Posts: 18

Rep: Reputation: Disabled
fluxbox does not remember app window configutation


I am running Debian Wheezy without any desktop environment. I want fluxbox to start two instances of emacs when X is started. Each instance should be full screen and they should be located in the first and third workspaces.

To do this I put into .fluxbox/startup:

emacs-a &
emacs-b &

These refer to executable scripts located in ~/scripts and symlinked to /usr/local/bin/emacs-a and emacs-b. The scripts call emacs and define the location of their configuration files.

The problem is that when X is started, both instances of emacs both show up on the first workspace and are not full screen. I move them to where I want them and make them full screen and then have them Remember the workspace, being full screen and Save on close. This is not remembered when X is started again. I also edited .flubox/apps by hand to specify workspace and full screen:

[app] (name=emacs-a) (class=Emacs)
[Workspace] {0}
[Fullscreen] {Yes}
[Close] {Yes}
[end]
[app] (name=emacs-b} (class=Emacs)
[Workspace] {2}
[Fullscreen] {Yes]
[Close] {Yes}
[close]

but this had no effect.

Haines
 
Old 12-09-2014, 08:01 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Fluxbox has a method for doing that using ~/.fluxbox/apps. I've never tried it, but you can read about it here or open man fluxbox-apps: http://fluxbox.org/help/man-fluxbox-apps.php
 
Old 12-09-2014, 10:10 PM   #3
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Im not sure how fluxbox reads that file, but my apps file works perfectly, note the case differences between mine and yours re yes vs Yes.

Code:
[app] (name=fbrun)
  [Position]	(CENTER)	{0 0}
  [Layer]	{2}
[end]
[app] (name=timer) (class=Timer)
  [Position]	(UPPERLEFT)	{4% 25%}
  [Layer]	{6}
  [Close]	{yes}
[end]
[app] (name=Download) (class=Firefox) (role=Manager)
  [Position]	(UPPERLEFT)	{14% 61%}
  [Close]	{yes}
[end]
[app] (name=quake2) (class=quake2)
  [Deco]	{NONE}
[end]
[app] (name=skype) (class=Skype)
  [Dimensions]	{240 267}
[end]
[app] (name=timer #2) (class=Timer)
  [Position]	(UPPERLEFT)	{6% 22%}
  [Layer]	{6}
  [Close]	{yes}
[end]
 
1 members found this post helpful.
Old 12-09-2014, 10:33 PM   #4
dolphin_oracle
MX Linux
 
Registered: Dec 2013
Posts: 402

Rep: Reputation: Disabled
is the app that makes the window called emacs-a and emacs-b? fluxbox doesn't need to remember the window position of scripts unless they actually open a window. I suspect what is opening is two instances of emacs (name=emacs, class= Emacs), with different configurations. so in effect, your name=critera is not being met in the app file.

what you need to do is make 2 symlinks, unique, to emacs. then launch emacs with the symlinks. fluxbox will treat the symlink names as different.

here's a simple example apps file using leafpad. in the example, leafpad2 is simply a symlink back to leafpad.

Code:
[app] (name=leafpad) (class=Leafpad)
  [Workspace]	{0}
  [Jump]	{yes}
  [Close]	{yes}
[end]
[app] (name=leafpad2) (class=Leafpad2)
  [Workspace]	{1}
  [Jump]	{yes}
  [Close]	{yes}
[end]
the first starts opens on workspace 0 (alpha). the second to workspace 1 (beta). I set mine to jump to the workspace when opened but it isn't necessary.

Last edited by dolphin_oracle; 12-09-2014 at 10:34 PM.
 
2 members found this post helpful.
Old 12-10-2014, 08:12 AM   #5
Haines
LQ Newbie
 
Registered: Mar 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
I had clicked on SOLVED after writing a note with some information about my
success, but the SOLVED flag omitted my note. Let me just say, Thanks.
 
  


Reply

Tags
workspaces



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fluxbox remember styles Four Linux - Newbie 2 02-23-2007 08:27 AM
Fluxbox Switch Window Replacement App? Aeiri Linux - Software 5 04-11-2005 06:10 PM
fluxbox remember feature doesn't work jtiger Linux - Software 1 05-27-2004 11:26 PM
Galeon doesn't remember window size on FluxBox? mifrai Linux - Software 1 01-19-2004 04:21 AM
Fluxbox & remember patch => instant death Tinkster Linux - Software 7 03-02-2003 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration