Save setxkbmap settings?

I’m having trouble setting my keyboard settings to swedish, running Raspbian on a raspberry pi. I’ve tried everything and the only thing that worked was the command setxkbmap se.

But this doesn’t permanently save the settings, and it’s back to default after reboot. Is there a command to permanently save these settings?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

An easy way would be to add the command to your $HOME/.profile file (you can create it if it doesn’t exist):

setxkbmap se

That should make it run every time you log in.

Note that you should use $HOME/.profile rather than $HOME/.bash_profile, $HOME/.bashrc or some other similar file. This is because this setting should be read by your login manager.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x