xmodmap at X starting time
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > xmodmap at X starting time




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    xmodmap at X starting time  
pirouz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-12-06 10:46 PM

In order to set the keyboard configuration, I would like to add the
following line ''xmodmap /home/user/.xmodmaprc'' to the X start script.
I added the preceding command line to the general ''/etc/X11/Xsession'', and
the keyboard has no the right keymap and keysymb, but if I add it to the
local ~/user/.xsession, it has no effect !

Pirouz
Debian Sarge, on DELL Inspiron  with kde 3.3, as windwow manager






[ Post a follow-up to this message ]



    Re: xmodmap at X starting time  
Jes Vestervang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-12-06 10:46 PM

pirouz <piromorshed@yahoo.fr> writes:

> In order to set the keyboard configuration, I would like to add the
> following line ''xmodmap /home/user/.xmodmaprc'' to the X start script.
> I added the preceding command line to the general ''/etc/X11/Xsession'', a
nd
> the keyboard has no the right keymap and keysymb, but if I add it to the
> local ~/user/.xsession, it has no effect !

Put a shell script in ~/.kde/Autostart and remember to give it execute
permissions (chmod u+x filename).

The script would then be something like this

#!/bin/sh
xmodmap /home/user/.xmodmaprc
--
Regards
Jes Vestervang





[ Post a follow-up to this message ]



    Re: xmodmap at X starting time  
pirouz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-12-06 10:46 PM

Successfull !
Thanks ! But, may I conclude that ~/.xsession is no more the user X startup
script ?

Jes Vestervang wrote:

> pirouz <piromorshed@yahoo.fr> writes:
> 
>
> Put a shell script in ~/.kde/Autostart and remember to give it execute
> permissions (chmod u+x filename).
>
> The script would then be something like this
>
> #!/bin/sh
> xmodmap /home/user/.xmodmaprc






[ Post a follow-up to this message ]



    Re: xmodmap at X starting time  
gregor herrmann


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-12-06 10:46 PM

On Sun, 12 Feb 2006 21:11:58 +0100, pirouz wrote:

> I added the preceding command line to the general ''/etc/X11/Xsession'', a
nd
> the keyboard has no the right keymap and keysymb, but if I add it to the
> local ~/user/.xsession, it has no effect !

According to man xsession the file should be called $HOME/.Xsession -
note the capital letter X.
And this works for my without any problems.

gregor
--
.''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' :  infos zur usenet-hierarchie at.*: http://www.usenet.at/
`. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`-    NP: Kurt Ostbahn & Die Kombo: I waas gnua





[ Post a follow-up to this message ]



    Re: xmodmap at X starting time  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-13-06 07:47 AM

On Mon, 13 Feb 2006 00:25:22 +0100, pirouz
<piromorshed@yahoo.fr> wrote:
> Successfull !
> Thanks ! But, may I conclude that ~/.xsession is no more the user X startu
p
> script ?
>
.xsession works for me.  But Gnome or KDE might have settings that
override .xsession.  Or, if you add to the end of an existing .xsession,
your new commands might be executed at logout.







[ Post a follow-up to this message ]



    Re: xmodmap at X starting time  
Neil Woods


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-13-06 07:47 AM

On Sun, Feb 12 2006, gregor herrmann wrote:

> On Sun, 12 Feb 2006 21:11:58 +0100, pirouz wrote:
> 
>
> According to man xsession the file should be called $HOME/.Xsession -
> note the capital letter X.
> And this works for my without any problems.

Either should work. According to xsession(5):

.. if the line 'allow-user-xsession' is present in Xsession.options, a
user-specified session program or script is used.  In the latter
case, two historically popular names for user X session scripts are
searched for: $HOME/.xsession and $HOME/.Xsession (note the
difference in case).  The first one found is used.

These are Debian specific changes, I think. I prefer to use the startx
script, starting X and my window manager (FVWM2) from the command line.
In this scenario, one would normally initialise startx using commands
found in ~/.xinitrc, however Debian have combined the functionality of
both into ~/.xsession. See startx(1).
--
Neil.
One of the lessons of history is that nothing is often a good thing to
do and always a clever thing to say.
-- Will Durant





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:06 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register