WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: setxkbmap onboot ?  (Read 1298 times)

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
setxkbmap onboot ?
« on: April 22, 2022, 08:47:41 AM »
Hi

I found an extension for setting my keyboard in the GUI but I can't use it in the /opt/bootlocal.sh nor /opt/bootsync.sh because the x server start after this 2 file.
Somebody know how to use the command

setxkboard fr
Just after the GUI has started ?
It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: setxkbmap onboot ?
« Reply #1 on: April 22, 2022, 08:56:25 AM »
Hi MrToga
Create a file (any name you want) in your  .X.d  directory containing:
Code: [Select]
setxkboard fr &The command will get executed once X is running.

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: setxkbmap onboot ?
« Reply #2 on: April 22, 2022, 09:09:04 AM »
Hi Rich,

So I put a file in the .X.d directory but when I reboot and then the startx launch the keyboard is still in us

Maybe I am missing the extension of the file ?
It's fine

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: setxkbmap onboot ?
« Reply #3 on: April 22, 2022, 09:25:01 AM »
Update :

I didn't put the file in executable and I got the wrong command, the command was :

setxkbmap fr &

(My bad I'm dumb)

It's fine

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11695
Re: setxkbmap onboot ?
« Reply #4 on: April 22, 2022, 09:40:07 AM »
Hi MrToga
You know the old saying:
Garbage in, garbage out.

You gave me garbage, and garbage is what I returned.  ;D
« Last Edit: April 22, 2022, 11:15:08 PM by Rich »