[clavier-qwerty] obtenir les accents sous wayland

Questions et astuces concernant l'installation et la configuration d'archlinux
Avatar de l’utilisateur
Breizil29
yeomen
Messages : 265
Inscription : dim. 13 juin 2021, 15:04

[clavier-qwerty] obtenir les accents sous wayland

Message par Breizil29 »

Bonjour à tous, sous X11 j'utilisais :
alias us='setxkbmap us'
alias usi='setxkbmap us intl'
Et je voudrais quelque chose de semblable sous Hyprland.
- Desktop - Arch Linux x86_64
CPU : i7-12700KF
GPU: NVIDIA T600
Audio : SSL 2+610
- Desktop - Arch Linux x86_64
CPU : Intel® Pentium® G4560
GPU : Intel HD graphics 610
- Laptop -HP Compaq 6830s - Arch Linux x86_64
CPU : Intel® Core™2 Duo T5870 × 2
GPU : AMD RV620
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17563
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [clavier-qwerty] obtenir les accents sous wayland

Message par benjarobin »

Bonjour, il n'y a pas que je sache aujourd'hui de méthode standard afin de changer le layout du clavier avec Wayland. C'est spécifique compositeur.
Donc je regarde pour Hyprland si il y a une méthode en ligne de commande. Voici quelques liens :
https://wiki.hyprland.org/Configuring/K ... ut-configs
https://bbs.archlinux.org/viewtopic.php ... 4#p2158014
https://www.reddit.com/r/hyprland/comme ... t/iqt08q8/
https://wiki.hyprland.org/Configuring/U ... rd-layouts
https://github.com/hyprwm/Hyprland/discussions/2616

Donc en résumé :

Code : Tout sélectionner

hyprctl keyword input:kb_layout us
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Breizil29
yeomen
Messages : 265
Inscription : dim. 13 juin 2021, 15:04

Re: [clavier-qwerty] obtenir les accents sous wayland

Message par Breizil29 »

Résolu, merci benjarobin, avec ceci :

/home/gg/.config/hypr/hyprland.conf

Code : Tout sélectionner

input {
    kb_layout = us
    kb_variant = intl
    kb_model = pc105
    kb_options =
    kb_rules =
}
- Desktop - Arch Linux x86_64
CPU : i7-12700KF
GPU: NVIDIA T600
Audio : SSL 2+610
- Desktop - Arch Linux x86_64
CPU : Intel® Pentium® G4560
GPU : Intel HD graphics 610
- Laptop -HP Compaq 6830s - Arch Linux x86_64
CPU : Intel® Core™2 Duo T5870 × 2
GPU : AMD RV620
lemust83
yeomen
Messages : 208
Inscription : ven. 11 déc. 2015, 21:20

Re: [clavier-qwerty] obtenir les accents sous wayland

Message par lemust83 »

Bonjour.
Sous Xfce4.20 qui est maintenant compatible expérimentalement avec Wayland, j'ai retrouvé le clavier FR, donc avec accents, en faisant en root un simple :

Code : Tout sélectionner

su -
echo "XKB_DEFAULT_LAYOUT=fr" >> /etc/environment
exit
Tour: Arch (Xfce) 64 Testing: 6-Core: AMD Ryzen 5 2600X type: MT MCP speed: 2152 MHz min/max: 2200/3600 MH
UEFI: American Megatrends v: 3803 date: 01/22/2018
Graphics:
Device-1: AMD Baffin [Radeon RX 460/560D / Pro
450/455/460/555/555X/560/560X]
driver: amdgpu v: kernel
Display: server: X.Org 1.20.8 driver: amdgpu,ati unloaded: modesetting
resolution: 1920x1080~60Hz
OpenGL: renderer: Radeon RX 560 Series
Manjaro en Dual (grub).
Avatar de l’utilisateur
Breizil29
yeomen
Messages : 265
Inscription : dim. 13 juin 2021, 15:04

Re: [clavier-qwerty] obtenir les accents sous wayland

Message par Breizil29 »

Amélioration :

/home/gg/.config/hypr/hyprland.conf

Code : Tout sélectionner

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
    kb_layout = us
    kb_variant = altgr-intl
    kb_model =
    kb_options =
    kb_rules =

	special_fallthrough = yes

	follow_mouse =1

	touchpad {
		natural_scroll = no
	}

	sensitivity = 0 # -1.0 - 1.0, 0 means no modifacations.
}
- Desktop - Arch Linux x86_64
CPU : i7-12700KF
GPU: NVIDIA T600
Audio : SSL 2+610
- Desktop - Arch Linux x86_64
CPU : Intel® Pentium® G4560
GPU : Intel HD graphics 610
- Laptop -HP Compaq 6830s - Arch Linux x86_64
CPU : Intel® Core™2 Duo T5870 × 2
GPU : AMD RV620
Répondre