*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I'm trying to execute some commands at X starting time - like 'xset b off', 'xset m 4' and so on. I thought that putting them in ~/.xinitrc would do the job, but it doesn't.
This is my .xinitrc, and I start X with 'startx':
Code:
rexima vol 100
rexima pcm 100
xset b off
xset m 4
exec startfluxbox
Then I went to a fluxbox-specific solution - ~/.fluxbox/startup:
Code:
/usr/local/bin/fbsetroot -solid black
xset -b
xset m 4
rexima vol 100
rexima pcm 100
exec /usr/local/bin/fluxbox
Hi,
how do you start X, is it started by your display manager (like xdm or so) or do you use the startx command or other ?
In all cases, are you sure that your fluxbox starting scripts are executing your ~/.xinitrc or your ~/.xsession files ?
Try to add on the first line of your ~/.fluxbox/startup something like :
That some commands like 'echo' work (and presuming that fluxbox starts) and that others don't, sounds really strange to me. Maybe that your commands don't work for any reason ?
To turn off the bell, use: # echo 'hw.syscons.bell=0' >> /etc/sysctl.conf
Upon reboot, the bell will be off. (Or you can use sysctl to set the MIB afterwards to avoid a reboot.)
Quote:
Then I went to a fluxbox-specific solution - ~/.fluxbox/startup:
Code:
/usr/local/bin/fbsetroot -solid black
...
That should not be necessary with fluxbox. Once you've set the background within a fluxbox session, IIRC, it should default to ~/.fluxbox/lastwallpaper.
[ivanatora] ~> mixer
Mixer vol is currently set to 100:100
Mixer pcm is currently set to 100:100
Mixer line is currently set to 100:100
Mixer mic is currently set to 100:100
Mixer cd is currently set to 99:99
Mixer rec is currently set to 100:100
Recording source: mic
About why I'm cranking with vol and pcm... don't know - that's how I'm used to from linux
You are right about sending the processes in background with '&' but I think these are completed within a part of a second so it is not so critical to background these.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.