impossibility of loading xmodmap on startup X .initrc?
I simply cannot make the .initrc file or other attempts load my .xmodmap preferences.
My laptop is a new squeeze installation. I followed this site: http://fluxbox-wiki.org/index.php?title=.xinitrc I added: Code:
xmodmap ~/.xmodmap In xterm after I start fluxbox it always works. Why is this not working? What (dot)file should I use for my startup preferences/commands? Thankyou. |
Quote:
Quote:
|
It should be .Xmodmap rather than .xmodmap, no ?
edit: yes, in my .xinitrc, it tests for .Xmodmap : Code:
$ grep -i xmodmap ~/.xinitrc |
Quote:
|
It matters if you use stock xinitrc file...
|
The OP said that he entered the line "As I do in my xterm after login and startx command for fluxbox start", whatever that means. I would assume that he means .xinitrc, but I would wait for a reply first.
|
xinitrc
Indeed, I miss typed.
I have been always using .xinitrc and not initrc. Also I have written the preferences in a .xmodmap file. I have seen that alot of user write as .Xmodmap but I reckon this is irrelevant or is it not? It works when I enter the command Code:
xmodmap .xmodmap |
solved
Sirs this problem has just been solved, a friend of mine has provided me his .xsession file and these lines seem to solve it:
Code:
#/usr/bin/setxkbmap pt && /usr/bin/xmodmap ~/.xmodmap |
results
I would like to point out that what, more rigorously, I did was:
created the .xmodmap with my personal preferences. created the .xsession file and included the line I inserted in my previous reply. For future reference, these are the .xsession and .xmodmap files: .xsession: Code:
#!/bin/sh Code:
! |
unsolved on squeeze HP Compaq nc6320
Although I have solved this issue on my desktop pc, I have not been able to solve this xmodmap problem on my laptop HP Compaq nc6320 with squeeze fluxbox.
Therefore I ask if anyone can help me run xmodmap with my .xmodmap file automatically everytime I start. My xmodmap .xmodmap works perfectly every time I use it after starting fluxbox when I execute this in xterm. How can I make this command be executed automatically? My .xsession already has Code:
xmodmap ~/.xmodmap |
It is your religion or something that force you to use .xmodmap instead of .Xmodmap ?
I mean for example in my system, the xinitrc search for .Xmodmap, not .xmodmap by default Ok you could modify each xinitrc for various wm, and modify them again after wm upgrade but... See it for yourself: Code:
grep .xmodmap /etc/X11/xinit/* Sorry, after some reading I think it is not the same xinit scripts in ubuntu I don't know if it is relevant but some advise to Code:
ln -s ~/.xinitrc ~/.xsession (startx will read .xinitrc and gdm will read .xsession) |
no output
Quote:
there was no output to both greps. I do not plan to use gdm |
Did you try to link your .xsession to .xinitrc just for testing ?
(startx will read .xinitrc and gdm will read .xsession) Code:
ls -s ~/.xsession ~/.xinitrc |
Quote:
Sir Cedrik, I have gotten around the time to test your solution but this did not work. |
solution
I would like to point out that I have found a solution in an emacs site for this problem
Instead of using xmodmap I am now using this: Code:
|
All times are GMT -5. The time now is 01:34 PM. |