Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A How to change the keyboard layout with Gnome and Arch linux?

My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language". Note that I am also open to a "working" solution on any other d...

2 answers  ·  posted 10mo ago by zetyty‭  ·  edited 10mo ago by matthewsnyder‭

#5: Post edited by user avatar matthewsnyder‭ · 2023-07-29T21:39:01Z (10 months ago)
The answer is very different for not-gnome
  • How to change the keyboard layout with Arch linux?
  • How to change the keyboard layout with Gnome and Arch linux?
My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".

Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.

## Attempts

During the install I just done:
```bash
loadkeys fr-latin1
```
And everything was fine (i.e. the keyboard layout instantaneously changed correctly).

But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.

I tried a lot things, like the below commands, but it seems that "nothing" append:
```bash
loadkeys fr-latin1
setxkbmap fr
localectl set-x11-keymap fr
localectl set-keymap fr-latin1
```

The content of `/etc/X11/xorg.conf.f/00-keyboard.conf` is currently
```bash
Section "InputClass"
    Identifier "system-keyboard"
    MatchIsKeyboard "on"
    Option "XkbLayout" "fr"
    Option "XkbModel" "pc105"
    Option "XkbVariant" "latin1"
EndSection
```

But the keyboard layout remains in QWERTY...

<details>
<summary>

## Additional materials

</summary>

In `/etc/locale.gen` file, only these 4 lines are uncommented:
```bash
en_US.UTF-8 UTF-8
en_US ISO-8859-1
fr_FR.UTF-8 UTF-8
fr_FR ISO-8859-1
```

Output of `locale-gen` command:
```bash
Generating locales...
    en_US.UTF-8... done
    en_US ISO-8859-1... done
    fr_FR.UTF-8... done
    fr_FR ISO-8859-1... done
Generation complete.
```

`LANG` variable created with:
```bash
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
```

N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.

</details>

*N.B. I am completely new to Arch.*
#4: Post edited by user avatar zetyty‭ · 2023-07-27T13:16:12Z (10 months ago)
remove paragraph regarding "localectl set-x11-keymap fr" and session sign in
  • My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".
  • Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.
  • ## Attempts
  • During the install I just done:
  • ```bash
  • loadkeys fr-latin1
  • ```
  • And everything was fine (i.e. the keyboard layout instantaneously changed correctly).
  • But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.
  • I tried a lot things, like the below commands, but it seems that "nothing" append:
  • ```bash
  • loadkeys fr-latin1
  • setxkbmap fr
  • localectl set-x11-keymap fr
  • localectl set-keymap fr-latin1
  • ```
  • The content of `/etc/X11/xorg.conf.f/00-keyboard.conf` is currently
  • ```bash
  • Section "InputClass"
  • Identifier "system-keyboard"
  • MatchIsKeyboard "on"
  • Option "XkbLayout" "fr"
  • Option "XkbModel" "pc105"
  • Option "XkbVariant" "latin1"
  • EndSection
  • ```
  • But the keyboard layout remains in QWERTY...
  • However with the command `localectl set-x11-keymap fr` the keyboard layout is in AZERTY only when log in (when I type the user session password) but after, when the session is open, the layout is QWERTY when I type something in the search bar, or on terminal or on console...
  • <details>
  • <summary>
  • ## Additional materials
  • </summary>
  • In `/etc/locale.gen` file, only these 4 lines are uncommented:
  • ```bash
  • en_US.UTF-8 UTF-8
  • en_US ISO-8859-1
  • fr_FR.UTF-8 UTF-8
  • fr_FR ISO-8859-1
  • ```
  • Output of `locale-gen` command:
  • ```bash
  • Generating locales...
  • en_US.UTF-8... done
  • en_US ISO-8859-1... done
  • fr_FR.UTF-8... done
  • fr_FR ISO-8859-1... done
  • Generation complete.
  • ```
  • `LANG` variable created with:
  • ```bash
  • echo LANG=en_US.UTF-8 > /etc/locale.conf
  • export LANG=en_US.UTF-8
  • ```
  • N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.
  • </details>
  • *N.B. I am completely new to Arch.*
  • My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".
  • Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.
  • ## Attempts
  • During the install I just done:
  • ```bash
  • loadkeys fr-latin1
  • ```
  • And everything was fine (i.e. the keyboard layout instantaneously changed correctly).
  • But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.
  • I tried a lot things, like the below commands, but it seems that "nothing" append:
  • ```bash
  • loadkeys fr-latin1
  • setxkbmap fr
  • localectl set-x11-keymap fr
  • localectl set-keymap fr-latin1
  • ```
  • The content of `/etc/X11/xorg.conf.f/00-keyboard.conf` is currently
  • ```bash
  • Section "InputClass"
  • Identifier "system-keyboard"
  • MatchIsKeyboard "on"
  • Option "XkbLayout" "fr"
  • Option "XkbModel" "pc105"
  • Option "XkbVariant" "latin1"
  • EndSection
  • ```
  • But the keyboard layout remains in QWERTY...
  • <details>
  • <summary>
  • ## Additional materials
  • </summary>
  • In `/etc/locale.gen` file, only these 4 lines are uncommented:
  • ```bash
  • en_US.UTF-8 UTF-8
  • en_US ISO-8859-1
  • fr_FR.UTF-8 UTF-8
  • fr_FR ISO-8859-1
  • ```
  • Output of `locale-gen` command:
  • ```bash
  • Generating locales...
  • en_US.UTF-8... done
  • en_US ISO-8859-1... done
  • fr_FR.UTF-8... done
  • fr_FR ISO-8859-1... done
  • Generation complete.
  • ```
  • `LANG` variable created with:
  • ```bash
  • echo LANG=en_US.UTF-8 > /etc/locale.conf
  • export LANG=en_US.UTF-8
  • ```
  • N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.
  • </details>
  • *N.B. I am completely new to Arch.*
#3: Post edited by user avatar zetyty‭ · 2023-07-27T11:45:46Z (10 months ago)
code indent
  • My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".
  • Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.
  • ## Attempts
  • During the install I just done:
  • ```bash
  • loadkeys fr-latin1
  • ```
  • And everything was fine (i.e. the keyboard layout instantaneously changed correctly).
  • But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.
  • I tried a lot things, like the below commands, but it seems that "nothing" append:
  • ```bash
  • loadkeys fr-latin1
  • setxkbmap fr
  • localectl set-x11-keymap fr
  • localectl set-keymap fr-latin1
  • ```
  • The content of `/etc/X11/xorg.conf.f/00-keyboard.conf` is currently
  • ```bash
  • Section "InputClass"
  • Identifier "system-keyboard"
  • MatchIsKeyboard "on"
  • Option "XkbLayout" "fr"
  • Option "XkbModel" "pc105"
  • Option "XkbVariant" "latin1"
  • EndSection
  • ```
  • But the keyboard layout remains in QWERTY...
  • However with the command `localectl set-x11-keymap fr` the keyboard layout is in AZERTY only when log in (when I type the user session password) but after, when the session is open, the layout is QWERTY when I type something in the search bar, or on terminal or on console...
  • <details>
  • <summary>
  • ## Additional materials
  • </summary>
  • In `/etc/locale.gen` file, only these 4 lines are uncommented:
  • ```bash
  • en_US.UTF-8 UTF-8
  • en_US ISO-8859-1
  • fr_FR.UTF-8 UTF-8
  • fr_FR ISO-8859-1
  • ```
  • Output of `locale-gen` command:
  • ```bash
  • Generating locales...
  • en_US.UTF-8... done
  • en_US ISO-8859-1... done
  • fr_FR.UTF-8... done
  • fr_FR ISO-8859-1... done
  • Generation complete.
  • ```
  • `LANG` variable created with:
  • ```bash
  • echo LANG=en_US.UTF-8 > /etc/locale.conf
  • export LANG=en_US.UTF-8
  • ```
  • N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.
  • </details>
  • *N.B. I am completely new to Arch.*
  • My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".
  • Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.
  • ## Attempts
  • During the install I just done:
  • ```bash
  • loadkeys fr-latin1
  • ```
  • And everything was fine (i.e. the keyboard layout instantaneously changed correctly).
  • But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.
  • I tried a lot things, like the below commands, but it seems that "nothing" append:
  • ```bash
  • loadkeys fr-latin1
  • setxkbmap fr
  • localectl set-x11-keymap fr
  • localectl set-keymap fr-latin1
  • ```
  • The content of `/etc/X11/xorg.conf.f/00-keyboard.conf` is currently
  • ```bash
  • Section "InputClass"
  • Identifier "system-keyboard"
  • MatchIsKeyboard "on"
  • Option "XkbLayout" "fr"
  • Option "XkbModel" "pc105"
  • Option "XkbVariant" "latin1"
  • EndSection
  • ```
  • But the keyboard layout remains in QWERTY...
  • However with the command `localectl set-x11-keymap fr` the keyboard layout is in AZERTY only when log in (when I type the user session password) but after, when the session is open, the layout is QWERTY when I type something in the search bar, or on terminal or on console...
  • <details>
  • <summary>
  • ## Additional materials
  • </summary>
  • In `/etc/locale.gen` file, only these 4 lines are uncommented:
  • ```bash
  • en_US.UTF-8 UTF-8
  • en_US ISO-8859-1
  • fr_FR.UTF-8 UTF-8
  • fr_FR ISO-8859-1
  • ```
  • Output of `locale-gen` command:
  • ```bash
  • Generating locales...
  • en_US.UTF-8... done
  • en_US ISO-8859-1... done
  • fr_FR.UTF-8... done
  • fr_FR ISO-8859-1... done
  • Generation complete.
  • ```
  • `LANG` variable created with:
  • ```bash
  • echo LANG=en_US.UTF-8 > /etc/locale.conf
  • export LANG=en_US.UTF-8
  • ```
  • N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.
  • </details>
  • *N.B. I am completely new to Arch.*
#2: Post edited by user avatar zetyty‭ · 2023-07-27T11:45:15Z (10 months ago)
typo + last section as details/summary section
  • My goal is to set a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".
  • Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.
  • ## Attempts
  • During the install I just done:
  • ```bash
  • loadkeys fr-latin1
  • ```
  • And everything was fine (i.e. the keyboard layout instantaneously changed correctly).
  • But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.
  • I tried a lot things, like the below commands, but it seems that "nothing" append:
  • ```bash
  • loadkeys fr-latin1
  • setxkbmap fr
  • localectl set-x11-keymap fr
  • localectl set-keymap fr-latin1
  • ```
  • The content of `/etc/X11/xorg.conf.f/00-keyboard.conf` is currently
  • ```bash
  • Section "InputClass"
  • Identifier "system-keyboard"
  • MatchIsKeyboard "on"
  • Option "XkbLayout" "fr"
  • Option "XkbModel" "pc105"
  • Option "XkbVariant" "latin1"
  • EndSection
  • ```
  • But the keyboard layout remains in QWERTY...
  • However with the command `localectl set-x11-keymap fr` the keyboard layout is in AZERTY only when log in (when I type the user session password) but after, when the session is open, the layout is QWERTY when I type something in the search bar, or on terminal or on console...
  • ## Additional materials
  • In `/etc/locale.gen` file, only these 4 lines are uncommented:
  • ```bash
  • en_US.UTF-8 UTF-8
  • en_US ISO-8859-1
  • fr_FR.UTF-8 UTF-8
  • fr_FR ISO-8859-1
  • ```
  • Output of `locale-gen` command:
  • ```bash
  • Generating locales...
  • en_US.UTF-8... done
  • en_US ISO-8859-1... done
  • fr_FR.UTF-8... done
  • fr_FR ISO-8859-1... done
  • Generation complete.
  • ```
  • `LANG` variable created with:
  • ```bash
  • echo LANG=en_US.UTF-8 > /etc/locale.conf
  • export LANG=en_US.UTF-8
  • ```
  • N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.
  • *N.B. I am completely new to Arch.*
  • My goal is to use a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".
  • Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.
  • ## Attempts
  • During the install I just done:
  • ```bash
  • loadkeys fr-latin1
  • ```
  • And everything was fine (i.e. the keyboard layout instantaneously changed correctly).
  • But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.
  • I tried a lot things, like the below commands, but it seems that "nothing" append:
  • ```bash
  • loadkeys fr-latin1
  • setxkbmap fr
  • localectl set-x11-keymap fr
  • localectl set-keymap fr-latin1
  • ```
  • The content of `/etc/X11/xorg.conf.f/00-keyboard.conf` is currently
  • ```bash
  • Section "InputClass"
  • Identifier "system-keyboard"
  • MatchIsKeyboard "on"
  • Option "XkbLayout" "fr"
  • Option "XkbModel" "pc105"
  • Option "XkbVariant" "latin1"
  • EndSection
  • ```
  • But the keyboard layout remains in QWERTY...
  • However with the command `localectl set-x11-keymap fr` the keyboard layout is in AZERTY only when log in (when I type the user session password) but after, when the session is open, the layout is QWERTY when I type something in the search bar, or on terminal or on console...
  • <details>
  • <summary>
  • ## Additional materials
  • </summary>
  • In `/etc/locale.gen` file, only these 4 lines are uncommented:
  • ```bash
  • en_US.UTF-8 UTF-8
  • en_US ISO-8859-1
  • fr_FR.UTF-8 UTF-8
  • fr_FR ISO-8859-1
  • ```
  • Output of `locale-gen` command:
  • ```bash
  • Generating locales...
  • en_US.UTF-8... done
  • en_US ISO-8859-1... done
  • fr_FR.UTF-8... done
  • fr_FR ISO-8859-1... done
  • Generation complete.
  • ```
  • `LANG` variable created with:
  • ```bash
  • echo LANG=en_US.UTF-8 > /etc/locale.conf
  • export LANG=en_US.UTF-8
  • ```
  • N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.
  • </details>
  • *N.B. I am completely new to Arch.*
#1: Initial revision by user avatar zetyty‭ · 2023-07-27T11:30:21Z (10 months ago)
How to change the keyboard layout with Arch linux?
My goal is to set a french AZERTY keyboard layout with Arch linux and Gnome desktop environment but use US English as "OS language".

Note that I am also open to a "working" solution on any other desktop environment than Gnome as long as I can run a GUI web browser with it.

## Attempts

During the install I just done:
```bash
loadkeys fr-latin1
```
And everything was fine (i.e. the keyboard layout instantaneously changed correctly).

But after the install, during first boot of the OS, I noted that the keyboard was set to "QWERTY" when I tried to log in my user session.

I tried a lot things, like the below commands, but it seems that "nothing" append:
```bash
loadkeys fr-latin1
setxkbmap fr
localectl set-x11-keymap fr
localectl set-keymap fr-latin1
```

The content of `/etc/X11/xorg.conf.f/00-keyboard.conf` is currently
```bash
    Section "InputClass"
    Identifier "system-keyboard"
    MatchIsKeyboard "on"
    Option "XkbLayout" "fr"
    Option "XkbModel" "pc105"
    Option "XkbVariant" "latin1"
EndSection
```

But the keyboard layout remains in QWERTY...

However with the command `localectl set-x11-keymap fr` the keyboard layout is in AZERTY only when log in (when I type the user session password) but after, when the session is open, the layout is QWERTY when I type something in the search bar, or on terminal or on console...

## Additional materials

In `/etc/locale.gen` file, only these 4 lines are uncommented:
```bash
en_US.UTF-8 UTF-8
en_US ISO-8859-1
fr_FR.UTF-8 UTF-8
fr_FR ISO-8859-1
```

Output of `locale-gen` command:
```bash
Generating locales...
    en_US.UTF-8... done
    en_US ISO-8859-1... done
    fr_FR.UTF-8... done
    fr_FR ISO-8859-1... done
Generation complete.
```

`LANG` variable created with:
```bash
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
```

N.B. I use a fresh install of Arch, so I can reinstall it easily if necessary.


*N.B. I am completely new to Arch.*