Re: Execute the command when login
El día Thursday, July 03, 2008 a las 11:30:03AM +0800, ronggui escribió: > My solution: > > add the command to ~/xinitrc > ### content of ~/.xinitrc > xmodmap ~/.xmodmaprc > exec fvwm > ### > xmodmap must come before exec fvwm, otherwise it take no effect. Of course it will not work if you put it after 'exec fvwm' because than it will get executed after fvwm dies and perhaps Xorg terminates; as I said in my post you must ensure to have a proper DISPLAY variable in your environment and X must be up in the moment you lauch any X-application; both are missing in your ~/.xinitrc above; try this: make a file xmodmap.sh with #!/bin/sh DISPLAY=:0.0 export DISPLAY sleep 10 xclock put into your ~/.xinitrc the lines: sh ~/xmodmap.sh & exec fvwm (don't miss the '&' sign!) and watch if the xclock comes up after fvwm is up; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Execute the command when login
My solution: add the command to ~/xinitrc ### content of ~/.xinitrc xmodmap ~/.xmodmaprc exec fvwm ### xmodmap must come before exec fvwm, otherwise it take no effect. I tried to put xmodmap to ~/.login as well, but it is not satisfying. When I login, FB complains, as xmodmap has to executed after X starts. Best On Thu, Jul 3, 2008 at 10:39 AM, ronggui <[EMAIL PROTECTED]> wrote: > Mine is fvwm. Putting the command in ~/.xinitrc doesn't work. > > Best to all. > > On Thu, Jul 3, 2008 at 6:47 AM, prad <[EMAIL PROTECTED]> wrote: >> On Wed, 2 Jul 2008 10:00:13 +0200 >> Matthias Apitz <[EMAIL PROTECTED]> wrote: >> >>> You could launch it from ~/.xinitrc for example as: >>> >>> xmodmap.sh >>> exec startkde >>> >> i tried to do that with ion and it didn't work which came as a surprise. >> however, i will try it again and maybe with a different wm. >> >> -- >> In friendship, >> prad >> >> ... with you on your journey >> Towards Freedom >> http://www.towardsfreedom.com (website) >> Information, Inspiration, Imagination - truly a site for soaring I's >> ___ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "[EMAIL PROTECTED]" >> > > > > -- > HUANG Ronggui, Wincent http://ronggui.huang.googlepages.com/ > Bachelor of Social Work, Fudan University, China > Master of sociology, Fudan University, China > Ph.D. Candidate, CityU of HK. > -- HUANG Ronggui, Wincent http://ronggui.huang.googlepages.com/ Bachelor of Social Work, Fudan University, China Master of sociology, Fudan University, China Ph.D. Candidate, CityU of HK. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Execute the command when login
Mine is fvwm. Putting the command in ~/.xinitrc doesn't work. Best to all. On Thu, Jul 3, 2008 at 6:47 AM, prad <[EMAIL PROTECTED]> wrote: > On Wed, 2 Jul 2008 10:00:13 +0200 > Matthias Apitz <[EMAIL PROTECTED]> wrote: > >> You could launch it from ~/.xinitrc for example as: >> >> xmodmap.sh >> exec startkde >> > i tried to do that with ion and it didn't work which came as a surprise. > however, i will try it again and maybe with a different wm. > > -- > In friendship, > prad > > ... with you on your journey > Towards Freedom > http://www.towardsfreedom.com (website) > Information, Inspiration, Imagination - truly a site for soaring I's > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > -- HUANG Ronggui, Wincent http://ronggui.huang.googlepages.com/ Bachelor of Social Work, Fudan University, China Master of sociology, Fudan University, China Ph.D. Candidate, CityU of HK. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Execute the command when login
On Wed, Jul 02, 2008 at 03:47:30PM -0700, prad wrote: > On Wed, 2 Jul 2008 10:00:13 +0200 > Matthias Apitz <[EMAIL PROTECTED]> wrote: > > > You could launch it from ~/.xinitrc for example as: > > > > xmodmap.sh > > exec startkde > > > i tried to do that with ion and it didn't work which came as a surprise. > however, i will try it again and maybe with a different wm. i think that xmodmap requires that you have X running for it towork. same with % xset r off that i need to prevent key bounces. In your shell initializatin file (~.login, ~/.zlogin ... ) is where the the xmodmap line belongs. a question for the list:: What is the global test to be sure that X *is* running?? gary > > -- > In friendship, > prad > > ... with you on your journey > Towards Freedom > http://www.towardsfreedom.com (website) > Information, Inspiration, Imagination - truly a site for soaring I's > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Execute the command when login
On Wed, 2 Jul 2008 10:00:13 +0200 Matthias Apitz <[EMAIL PROTECTED]> wrote: > You could launch it from ~/.xinitrc for example as: > > xmodmap.sh > exec startkde > i tried to do that with ion and it didn't work which came as a surprise. however, i will try it again and maybe with a different wm. -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Execute the command when login
El día Wednesday, July 02, 2008 a las 03:11:45PM +0800, ronggui escribió: > I would like to execute "xmodmap ~/.xmodmaprc" whenever login or start > the Xorg. I try to put the command to ~/.login_conf or ~/.xinit, but > it doesn't take effects. > > What should I do? Thanks. You could launch it from ~/.xinitrc for example as: xmodmap.sh exec startkde and in xmodmap.sh you must take care that you set the $DISPLAY accordingly, for example as 'setenv DISPLAY :0.0' and make sure that you let first come up the Xorg and the desktop too, before launching the xmodmap commands; if you use KDE as desktop, like I do, it is more simple to just put your script into the ~/.kde/Autostart/ directory; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Execute the command when login
ronggui wrote: > I would like to execute "xmodmap ~/.xmodmaprc" whenever login or start > the Xorg. I try to put the command to ~/.login_conf or ~/.xinit, but > it doesn't take effects. > > What should I do? Thanks. How do you start X? That command should normally be in ~/.xsession or ~/.xinitrc, all depending. Personally I put the xmodmap command in ~/.xinitrc, and my ~/.xsession is a symlink to ~/.xinitrc. That way, xmodmap will be executed whether I start X from the command line or use xdm. -- Tore ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"