pop-os / cosmic-epoch

Next generation Cosmic desktop environment
1.72k stars 55 forks source link

Set Keyboardlayout #201

Closed koleesch closed 1 month ago

koleesch commented 4 months ago

Hello,

I use the german keyboard layout and in gnome it is set. But if I start cosmic the cosmic desktop, the layout is the us keyboard layout. How can I set the keyboard layout?

Greetings

wiiznokes commented 4 months ago

I succeed to set it to azerty this way:

nano .config/cosmic/com.system76.CosmicComp/v1/xkb_config

and write this in it

(rules:"",model:"",layout:"fr",variant:"azerty",option:none)

But idk if this is a good way of doing it

mash-graz commented 4 months ago

I stumbled over the same issue...

I can't change any language/keyboard related settings via the config GUI and WLAN control also doesn't work.

sandboiii commented 1 month ago

Thank you @wiiznokes for pointing out config file. I've managed to setup switching keyboard layout with caps lock using same values I use for Hyprland config.

.config/cosmic/com.system76.CosmicComp/v1/xkb_config
(
    rules: "",
    model: "",
    layout: "us,ru",
    variant: "lang",
    options: Some("grp:caps_toggle"),
)
pauldesmondparker commented 1 month ago

@sandboiii Your response is from four hours ago and I can't get it to work with dvorak.

I did not have a com.system76.CosmicComp directory on my install, so I created it. I have copied the xkb_config file into every v1 sub-directory (since removed). I've restarted gdm. I've rebooted.

My xkb_config file looks like this:

(
    rules: "",
    model: "pc105",
    layout: "us",
    variant: "dvorak",
    options: Some("caps:none"),
)
wiiznokes commented 1 month ago

But there is an UI in cosmic settings for this anyway

mmstick commented 1 month ago

Implemented in cosmic-settings

sandboiii commented 1 month ago

@mmstick bump submodules please