[gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Alex V. Fansky
Hello,
I want command xmodmap ~/.Xmodmap to be executed on my X.org start and even 
restart. Where is the best place to put it?

-- 
Alex V. Fansky
Minsk, BSU
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Anders Trobäck
On Tue, 31 Jul 2007 13:23:04 +0300
Alex V. Fansky [EMAIL PROTECTED] wrote:

 Hello,
 I want command xmodmap ~/.Xmodmap to be executed on my X.org start
 and even restart. Where is the best place to put it?
 

How do you start X, XDM, GDM, KDM or maybe startx?

-- 


Microsoft is not the answer.
Microsoft is the question.
And 'No' is the answer!

Anders Trobäck
http://www.troback.com
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Dan Keder
Peter Ruskin wrote:
 On Tuesday 31 July 2007, Alex V. Fansky wrote:
  Hello,
  I want command xmodmap ~/.Xmodmap to be executed on my X.org
  start and even restart. Where is the best place to put it?
 
 ~/.bashrc

AFAIK .bashrc is sourced even when no X is running (e.g. when logging in
via ssh).
 

-- 
Dan Keder
http://www.fi.muni.cz/~xkeder/

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Neil Bothwick
On Tue, 31 Jul 2007 14:19:29 +0200, Dan Keder wrote:

   I want command xmodmap ~/.Xmodmap to be executed on my X.org
   start and even restart. Where is the best place to put it?

  ~/.bashrc  
 
 AFAIK .bashrc is sourced even when no X is running (e.g. when logging in
 via ssh).

More importantly, it is not sourced when X starts up.


-- 
Neil Bothwick

*Libra*: /(Sept 23--Oct 23)/ An unfortunate typo on your application
results in your being accepted into the Legion Of Superherpes.


signature.asc
Description: PGP signature


Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Tim Allingham
On Tue, 2007-07-31 at 13:23 +0300, Alex V. Fansky wrote:
 Hello,
 I want command xmodmap ~/.Xmodmap to be executed on my X.org start and even 
 restart. Where is the best place to put it?
 
 -- 
 Alex V. Fansky
 Minsk, BSU

can't you use .xinitrc for this?


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Neil Bothwick wrote:
 More importantly, it is not sourced when X starts up.

Try ~/.xinitrc

- --
Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGrzR7AlpOsGhXcE0RChmdAJ9OhtxZowOi0dpCBdzHy6E342bGcACeLiAU
ClXy8Zjk3PM6nFrF5GTCCBk=
=nRwL
-END PGP SIGNATURE-
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Peter Ruskin wrote:
 Yes, but but when you log in to a non-X terminal you can still log 
 in - all you get is a message like xmodmap:  unable to open 
 display ''.

Then execute those commands with a conditional test of the $DISPLAY env var...

test -n $DISPLAY  some_command_to_run_if_$DISPLAY_has_content

- --
Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
SHOW DE FUTURABANDA - Sabado 18 de Agosto 2007 (Speed King, Capital Federal)
Entradas anticipadas a traves de www.futurabanda.com.ar - Punk Rock Melodico


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGrzsKAlpOsGhXcE0RCgYFAJ0cgUsOKM1OPqndRZyaHiaXBYabegCfURrF
BB0+BtLtMTsKMepBZ5j/lEA=
=ThOQ
-END PGP SIGNATURE-
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Neil Bothwick
On Tue, 31 Jul 2007 10:09:24 -0300, Arturo 'Buanzo' Busleiman wrote:

  More importantly, it is not sourced when X starts up.  
 
 Try ~/.xinitrc

That may work, it depends on how the OP is starting X, which he hasn't
said, despite being asked. It could be .xinitrc, .Xsession
or .kde/Autostart/


-- 
Neil Bothwick

Top Oxymorons Number 24: New classic


signature.asc
Description: PGP signature


Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Neil Bothwick
On Tue, 31 Jul 2007 14:58:28 +0100, Peter Ruskin wrote:

  More importantly, it is not sourced when X starts up.  
 
 Works for me.

Which proves nothing more than you are starting bash with X. .bashrc is
for Bash, .xinitrc is for X. .bashrc running when X starts for you is a
by-product of your setup, not the way it is intended to be used.


-- 
Neil Bothwick

Macro: (n.) a series of keystrokes used to simulate a missing but
essential command.


signature.asc
Description: PGP signature


Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Albert Hopkins
On Tue, 2007-07-31 at 13:23 +0300, Alex V. Fansky wrote:
 Hello,
 I want command xmodmap ~/.Xmodmap to be executed on my X.org start
 and even 
 restart. Where is the best place to put it? 

Kinda depends on how you start your X session.  I'll talk about the ones
I know about:

  * If you use startx or xinit to start your X session, then you
probably already have an ~/.xinitrc. You can put it there.
  * If you use a xdm or similar then you can put it in ~/.xsession.
By default, though GDM, for example, does not read your
~/.xsession, however...
  * GNOME automatically reads your ~/.Xmodmap on startup unless told
otherwise.  You could also put it in Control
Center/Sessions/Startup Programs
  * I would *not* put it in ~/.bashrc for remote X stuff. the reason
is that your local machine may, e.g. have a different keyboard
layout than the remote machine and when you ssh into the remote
machine it will use the local .Xmodmap.  This is also a problem
with GNOME's automatic reading of .Xmodmap too, unfortunately.
If you are using xdm but not GNOME you can probably get around
it by checking to see if the DISPLAY variable points to a remote
(or ssh-forwarded) display.

I don't know KDE or other DE's/DM's so cannot say. 

--
Albert W. Hopkins

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Alex V. Fansky
В сообщении от Tuesday 31 July 2007 16:05:54 Tim Allingham написал(а):
 On Tue, 2007-07-31 at 13:23 +0300, Alex V. Fansky wrote:
  Hello,
  I want command xmodmap ~/.Xmodmap to be executed on my X.org start and
  even restart. Where is the best place to put it?
 
  --
  Alex V. Fansky
  Minsk, BSU

 can't you use .xinitrc for this?

Thanks for your reply. Adding my command to .xinitrc helped

-- 
Alex V. Fansky
Minsk, BSU
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] where to place command to be executed on X.org start

2007-07-31 Thread Tim Allingham
On Tue, 2007-07-31 at 14:58 +0100, Peter Ruskin wrote:
 On Tuesday 31 July 2007, Neil Bothwick wrote:
   AFAIK .bashrc is sourced even when no X is running (e.g. when
   logging in via ssh).
 
  More importantly, it is not sourced when X starts up.
 
 Works for me.
 
 -- 
 Peter
 
 Gentoo Linux: Portage 2.1.3_rc9   kernel-2.6.22-gentoo-r1
 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+gcc(GCC): 4.1.2
 KDE: 3.5.7Qt: 3.3.8
 

but if you restart X with ctrl-alt-backspace does it continue working?


signature.asc
Description: This is a digitally signed message part