You are not logged in.

#1 2012-09-11 19:46:09

Entd
Member
Registered: 2011-03-10
Posts: 18

[Solved] Configuring TTY program autostart

Hello, I want to create some interesting autostart configuration of alsamixer.
I use LXDM and LXDE as my DM and DE, default init level 5.
I want to autostart alsamixer in independent tty console (for example TTY6 - ctrl+alt+F6).

As I understand the sequence would be something like:
1) Autologin to tty6
2) Run default configuration file (like .bashrc but only working for that tty)
3) Force script to launch alsamixer

So my questions would be:
a) I managed to get autologin with agetty, but is there any way to detect in .bashrc in what TTY user configuration is running and load appropriate settings? Or load another configuration file perhaps for specific tty?
b) I could create other user for alsamixer launch, but would it get proper control of my main users audio and do not, for example, lock audio stream?
c) I actually do not need to start alsamixer immediately or before xserver. If there's any way to automatically launch alsamixer from DE in specific tty after loging in, it would suffice too. Is there such way or it is easier to launch everything in way I described?

Last edited by Entd (2012-09-25 19:14:46)

Offline

#2 2012-09-11 21:25:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Configuring TTY program autostart

Why do you want it in a TTY? It would be much easier to do it in whatever terminal emulator you use, and it would then be available within your X session, instead of having to Ctrl-Alt-F6.

Last edited by tomk (2012-09-11 21:25:24)

Offline

#3 2012-09-25 19:05:36

Entd
Member
Registered: 2011-03-10
Posts: 18

Re: [Solved] Configuring TTY program autostart

I'd done it. Solution was to edit .bash_profile with simple check what tty was runing and launching alsamixer.

Offline

Board footer

Powered by FluxBB