LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2014, 12:39 AM   #1
ronniejr8
LQ Newbie
 
Registered: Apr 2014
Distribution: Debian --(Sid)
Posts: 5

Rep: Reputation: Disabled
Running programs in background with Fluxbox


I am fairly new to Linux, in general (I do have a little experience). My buddy gave me one of his old crappy dell desktops that was running Windows XP and I decided to make an emulator box out of it. I wanted it to be lightweight, software-wise and have more customizeable gui. So after looking into it, I decided to install Debian (upgraded to Sid) + Fluxbox. I wanted the emulator box to to controlled by a gamepad so I installed Antimicro (keymapping software) to allow me to use the joystick on the gamepad in place of a mouse. I even modified the Fluxbox startup file to run

Code:
antimicro &
at startup (which works fine), however it maximizes by default, on startup and covers the screen everytime. For aesthetics, what would I need to so to make the program run in the background, automatically whenever I start Fluxbox?

tl;dr How can I make a program in X start automatically and then hide itself while continuing to run?

Thank you, in advance, for your time!
 
Old 04-26-2014, 03:08 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Check this :
http://fluxbox-wiki.org/index.php?ti...e_startup_file
 
Old 04-26-2014, 04:38 AM   #3
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 823

Rep: Reputation: 237Reputation: 237Reputation: 237
I think what you are looking for is a way to minimize the application window once the application was started, which cannot be achieved by appending the &

I haven't used fluxbox in a while, but I recall there is a handy feature called fluxbox-remote:

http://fluxbox.org/help/man-fluxbox-remote.php

It first has to be enabled (it's disabled by default because it might have some security implications when working over the network, but from what you described it did not sound this would affect you).

I used this to restart fluxbox after xrandr commands that messed up the display, but it would not surprise me if you could also minimize windows with this... might be worth a try.
 
Old 04-26-2014, 05:09 AM   #4
ronniejr8
LQ Newbie
 
Registered: Apr 2014
Distribution: Debian --(Sid)
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eklavya View Post
That link is actually how I learned how to edit the Fluxbox startup file to run the program. Unfortunately, I still could find nothing on minimizing programs
 
Old 04-26-2014, 05:50 AM   #5
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.2
Posts: 1,081

Rep: Reputation: 190Reputation: 190
You can either edit ~/.fluxbox/apps to accomplish your goal, or, from within fluxbox minimize your app, right click on the app in the taskbar>remember>select both minimized and save on close...make sure app remains minimized, and close it from within the taskbar.

For an idea of how /.fluxbox/apps works, you can $man fluxbox-apps, and/or have a look at the file before and after you do it through the gui.

cheers,
 
Old 04-26-2014, 07:24 AM   #6
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Try right-clicking on the desktop, then choose:

fluxbox menu --> Configure --> Toolbar --> Iconbar Mode --> All Windows

You could also right-click on the toolbar itself and choose Iconbar Mode --> All Windows.

The "Icons" group is just all minimized windows.
 
Old 04-26-2014, 07:49 AM   #7
ronniejr8
LQ Newbie
 
Registered: Apr 2014
Distribution: Debian --(Sid)
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by joe_2000 View Post
I think what you are looking for is a way to minimize the application window once the application was started

Quote:
Originally Posted by mrclisdue View Post
You can either edit ~/.fluxbox/apps to accomplish your goal, or, from within fluxbox minimize your app, right click on the app in the taskbar>remember>select both minimized and save on close...make sure app remains minimized, and close it from within the taskbar.

For an idea of how /.fluxbox/apps works, you can $man fluxbox-apps, and/or have a look at the file before and after you do it through the gui.

cheers,
Sadly, if I fully minimize the program (as opposed to just letting it run behind other programs), it disables the use of gamepad to control the cursor. Maybe I can set the program to auto start, but just in a different workspace!
 
Old 04-26-2014, 09:23 AM   #8
ronniejr8
LQ Newbie
 
Registered: Apr 2014
Distribution: Debian --(Sid)
Posts: 5

Original Poster
Rep: Reputation: Disabled
SOLVED: I ended up learning basic bash scripting and made a script that sends all processes to the background. Then I edited the Fluxbox startup file to run that script

[EDIT]: Much thanks to all of you again, for all of your suggestions!!

Last edited by ronniejr8; 04-26-2014 at 09:24 AM.
 
1 members found this post helpful.
Old 04-26-2014, 09:30 AM   #9
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware
Posts: 922

Rep: Reputation: 276Reputation: 276Reputation: 276
^ Nice! If there's not a t-shirt that reads "Wrote a script for it," there should be.
 
  


Reply

Tags
background, fluxbox, startup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running GUI programs in background problem thethinker Linux - General 4 08-06-2006 11:45 PM
Which programs running in background?? bcsman Linux - Newbie 11 05-18-2006 11:40 AM
Running programs in background via & parameter dissectional Linux - General 6 11-03-2005 07:09 PM
Programs running in background on linux?? JellyStones Linux - General 4 02-10-2004 05:42 AM
running programs in background koiphish Linux - Software 0 07-07-2003 01:48 AM


All times are GMT -5. The time now is 10:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration