How do I run setxkbmap at startup?
I have a problem with my keyboard on Kubuntu 10.10. The specifics of the problem are not really relevant right now. I can fix it by running 'setxkbmap br' on the command line. It's good for the entire session (KDE).
But I often forgot to do that, so I want to have that done automatically. I tried adding it to my .tcshrc file, it didn't work. I tried adding it to /etc/rc.local, it didn't work. Where can I insert that line and have it run automatically? Please note that my login shell is tcsh, not Bash. |
Quote:
|
Quote:
The second problem is I configured Yakuake to open a new tab/console/session with the Win+/ (Win and slash) key combination. It doesn't work on my ABNT2 keyboard. Yakuake wants Win+; (Win and semicolon). After the setxkbmap kludge, it works correctly. Note that those keys are typed correctly in all other applications, including Yakuake, Konsole or Xterm. Just Wine causes me that problem, and Yakuake just doesn't understand the key combination properly, it types the individual characters correctly. I never had any of these problems in Ubuntu 8.04 and 9.04, or even when I used Slackware 12 years ago. It started after I upgraded to Ubuntu 10.10. |
Quote:
Quote:
|
How about in /etc/csh.login?
And sorry for the late reply, I got really sick man. |
Create a file containing the command — say $HOME/.brkbd
Look in the KDE menu (I can't say where, as I'm a Gnome/Xfce user) for the program to set which programs are run when starting a session, and add your file. Make sure you've set its permissions to enable it to run as a program. |
Quote:
|
/etc/csh.login did not work, but DavidMcCann's idea seems to have worked. Funny that the first two attempts at pressing the key shortcut failed, then it worked and seems to be working. I will test it over the weekend with a few reboots and mark the thread as SOLVED if I don't run into any problems. Thank you, you two!
|
Oh cool, at least it's working now....
|
All times are GMT -5. The time now is 05:17 PM. |