LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Start Kmix minimized? (http://www.linuxquestions.org/questions/linux-desktop-74/start-kmix-minimized-557603/)

Jyde 05-29-2007 07:19 PM

Start Kmix minimized?
 
Can't find this anywhere, but hopefully an easy one:

Using KDE, having kmix in my Autostart folder - is there a way to get it to start up minimized, i.e. in the tray?

IsaacKuo 05-29-2007 07:37 PM

If you have KDE set up to restore the last session, then kmix will start up in the same state it was in when you last logged out. I take advantage of this to have kmix start up minimized. I do NOT have kmix or anything else in KDE's autostart folder, I just rely upon the session restore feature to restart programs like kmix or gaim which I have in the background.

pljvaldez 05-29-2007 07:37 PM

On my KDE desktop, whatever is open when I logout stays that way at startup/login for my user. I minimized kmix to the tray and then I logged out. Anytime I reboot or log back in, kmix is in the tray.

Similarly, if I leave a konsole open and logout, next time I login there will be a konsole already open.

Jyde 05-30-2007 07:12 AM

Thanks for the quick replies.

You are, of course, right. Problem is, I am playing around with restoring saved session (as opposed to last), as I sometimes switch form single to dual display and back (saving the session manually on that switch). As such, I need to have the Restore Manually Saved Session enabled.
As a normal logout doesn't seem to manually save the session, this won't be restored, so I was hoping that there was some way of telling kmix to start minimised. All I can find placement and size (--geometry), though no minimising.

Alas, that's a whole different kettle of fish.

Xeratul 06-02-2007 03:21 AM

(in fluxbox, it might be possible. http://fluxbox-wiki.org/index.php/Ho..._the_apps_file http://www.linuxquestions.org/questi...d.php?t=491448)

Jyde 06-04-2007 02:28 PM

Quote:

Originally Posted by Xeratul

I managed to do exactly what I wanted with the KDE windows manager.

I shall still take a look at Fluxbox though, seems neat.

Thanks a lot!

Xeratul 06-04-2007 02:30 PM

Quote:

Originally Posted by Jyde
I managed to do exactly what I wanted with the KDE windows manager.

I shall still take a look at Fluxbox though, seems neat.

Thanks a lot!

better now :

Code:

sudo apt-get install kdebase-bin
ksystraycmd --startonshow --keeprunning --icon kmix kmix


Jyde 06-04-2007 04:43 PM

Better indeed! Thanks!

Xeratul 06-04-2007 11:41 PM

Quote:

Originally Posted by Jyde
Better indeed! Thanks!

this method is still not perfect, but quite cool indeed.
Too, with fluxbox, you have a .fluxbox/apps that might be well configured

@+

arkaine23 06-06-2007 10:49 AM

kmix has -options you can pass to it to force it to minimize. I remember writing a little one-line script to do this and stuck it in KDE's autostartup folder. I did this because I didn't want to use the save session method for a custom Knoppix CD I built. I wanted kmix to have the default behavior of minimizing itself. for the default user. And I put the script in the KDE autostartup of the /etc/skel configuration too, so new user's would inherit the script in their KDE configs.

Xeratul 06-06-2007 01:06 PM

Quote:

Originally Posted by arkaine23
kmix has -options you can pass to it to force it to minimize. I remember writing a little one-line script to do this and stuck it in KDE's autostartup folder. I did this because I didn't want to use the save session method for a custom Knoppix CD I built. I wanted kmix to have the default behavior of minimizing itself. for the default user. And I put the script in the KDE autostartup of the /etc/skel configuration too, so new user's would inherit the script in their KDE configs.


man kmix

&

http://docs.kde.org/stable/en/kdemul...mix/index.html

are not giving much infos ....

hmm

Xeratul 06-06-2007 01:13 PM

fluxbox:

Code:

# XMMS
###

# TV
Control Mod1        e :ExecCommand dcop kmix Mixer0 decreaseVolume 6
Control Mod1        r :ExecCommand dcop kmix Mixer0 increaseVolume 6
Control Mod1        t :ExecCommand dcop kmix Mixer0 decreaseVolume 0
Control Mod1        y :ExecCommand dcop kmix Mixer0 increaseVolume 0

Control Mod1        m :ExecCommand /home/acrequy/bin/setmute.sh
Control Mod1        a :ExecCommand /home/acrequy/bin/mplayer-tv
Control Mod1        q :ExecCommand xawdecode -plugin /usr/local/lib/libxawdecode.so
Control Mod1        o :ExecCommand killall mplayer
Control Mod1        z :ExecCommand /home/acrequy/bin/mplayer-cam
Control Mod1        x :ExecCommand killall aplay ; killall artsd ; xmms-shell -e play
Control Mod1        w :ExecCommand xmms-shell -e previous
Control Mod1        b :ExecCommand xmms-shell -e next
Control Mod1        c :ExecCommand xmms-shell -e pause
Control Mod1        v :ExecCommand xmms-shell -e stop
Control Mod1        n :ExecCommand xmms-shell -e rand
Control Mod1        q :ExecCommand xmms-shell -e "xmmsquit"
Control Mod1        Up        :ExecCommand xmms-shell -e "+"
Control Mod1        Down :ExecCommand xmms-shell -e "-"
#Control PgUp :ExecCommand xmms-shell -e upvolume
#Control PageDown :ExecCommand xmms-shell -e rand
#Control Mod1        w :ExecCommand xmms-shell -e "window main toggle"
#Control Mod1        e :ExecCommand xmms-shell -e "window playlist toggle"


Jyde 06-09-2007 09:02 AM

Quote:

Originally Posted by arkaine23
kmix has -options you can pass to it to force it to minimize.

Yes, you can use the --geometry option for a minimised start-up (though it does not minise to the tray, just the taskbar).

gi1242 05-25-2013 09:41 PM

Try

Code:

kmix --keepvisibility


All times are GMT -5. The time now is 07:00 AM.