The lines:

from libqtile import qtile
qtile.core.set_keymap(layout="gb", 
options="caps:escape,altwin:swap_lalt_lwin", variant="")

in ~/.config/qtile/config.py

Instead:
XKB_DEFAULT_LAYOUT="gb" 
XKB_DEFAULT_OPTIONS="caps:escape,altwin:swap_lalt_lwin" qtile start -b 
wayland



Il giorno lunedì 16 agosto 2021 alle 22:03:17 UTC [email protected] ha 
scritto:

> For documentations same, what file did you put those lines into? 
>
> On Mon, Aug 16, 2021, 13:36 Vasco Gervasi <[email protected]> wrote:
>
>> Found it:
>>
>> export XKB_DEFAULT_LAYOUT="gb"
>> export XKB_DEFAULT_OPTIONS="caps:escape,altwin:swap_lalt_lwin"
>>
>> did the trick.
>>
>>
>> Il giorno lunedì 16 agosto 2021 alle 20:27:51 UTC+1 Vasco Gervasi ha 
>> scritto:
>>
>>> Thanks for the suggestion.
>>> I have managed to change layout by adding:
>>>
>>> from libqtile import qtile
>>> qtile.core.set_keymap(layout="gb", options="", variant="")
>>>
>>> The next step would be to apply "caps:escape" and 
>>> "altwin:swap_lalt_lwin" options.
>>>
>>> The following:
>>>
>>> qtile.core.set_keymap(layout="gb", 
>>> options="caps:escape,altwin:swap_lalt_lwin", variant="")
>>>
>>> It is swapping caps with escape but not alt and win.
>>>
>>> Any ideas?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Il giorno lunedì 16 agosto 2021 alle 16:52:09 UTC+1 Fabien-Bernard ha 
>>> scritto:
>>>
>>>> Hello,
>>>> Have you tried the KeyboardLayout widget?
>>>> https://docs.qtile.org/en/stable/manual/ref/widgets.html#keyboardlayout
>>>>
>>>> Le dim. 15 août 2021 à 20:27, Vasco Gervasi <[email protected]> a 
>>>> écrit :
>>>>
>>>>> No problem.
>>>>> From my understanding in Wayland the compositor and the server are 
>>>>> merged. That's why the "compositor" config file contains also the input 
>>>>> options.  
>>>>>
>>>>> Il giorno domenica 15 agosto 2021 alle 19:18:38 UTC+1 
>>>>> [email protected] ha scritto:
>>>>>
>>>>>> Ah, sorry. I misunderstood. I'm honestly not sure how to change from 
>>>>>> US to UK (or other physical layouts). I'm not sure where the divide 
>>>>>> between 
>>>>>> "X" tools and the x server is, though I would be surprised if Wayland 
>>>>>> reimplemented the inputs system.
>>>>>>
>>>>>> On Sun, Aug 15, 2021, 11:57 Vasco Gervasi <[email protected]> wrote:
>>>>>>
>>>>>>> I am sorry, is this page about change the key bindings?
>>>>>>> I am looking for keyboard layout, like "us", "gb", .... 
>>>>>>> Am I not reading correctly the documentation?
>>>>>>>
>>>>>>>
>>>>>>> Il giorno domenica 15 agosto 2021 alle 17:54:27 UTC 
>>>>>>> [email protected] ha scritto:
>>>>>>>
>>>>>>>> https://docs.qtile.org/en/latest/manual/config/keys.html
>>>>>>>>
>>>>>>>> On Sun, Aug 15, 2021, 11:46 Vasco Gervasi <[email protected]> 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I am sorry, What is the normal way to change keymap?
>>>>>>>>> Is "setxkbmap" X only?
>>>>>>>>> In sway you set the keyboard/mouse settings in the config file. 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Il giorno sabato 14 agosto 2021 alle 17:22:22 UTC 
>>>>>>>>> [email protected] ha scritto:
>>>>>>>>>
>>>>>>>>>> I see no reason why the normal way of changing key maps would 
>>>>>>>>>> work differently for Wayland than X.
>>>>>>>>>>
>>>>>>>>>> On Thu, Aug 12, 2021, 15:10 Vasco Gervasi <[email protected]> 
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>> I would like to use qtile in a wayland only environment.
>>>>>>>>>>> How can I to change the keyboard layout?
>>>>>>>>>>> I can see there is some code to "set_keymap" but I do not 
>>>>>>>>>>> understand how do I call it from the config.py file.
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>>
>>>>>>>>>>> -- 
>>>>>>>>>>> You received this message because you are subscribed to the 
>>>>>>>>>>> Google Groups "qtile-dev" group.
>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from 
>>>>>>>>>>> it, send an email to [email protected].
>>>>>>>>>>> To view this discussion on the web visit 
>>>>>>>>>>> https://groups.google.com/d/msgid/qtile-dev/f7aa4d29-c5b4-4405-96bf-f4d0ee6bc78cn%40googlegroups.com
>>>>>>>>>>>  
>>>>>>>>>>> <https://groups.google.com/d/msgid/qtile-dev/f7aa4d29-c5b4-4405-96bf-f4d0ee6bc78cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>>>> .
>>>>>>>>>>>
>>>>>>>>>> -- 
>>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>>> Groups "qtile-dev" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>>>> send an email to [email protected].
>>>>>>>>>
>>>>>>>> To view this discussion on the web visit 
>>>>>>>>> https://groups.google.com/d/msgid/qtile-dev/d5862e7f-cf08-4150-b281-e0b25bae936cn%40googlegroups.com
>>>>>>>>>  
>>>>>>>>> <https://groups.google.com/d/msgid/qtile-dev/d5862e7f-cf08-4150-b281-e0b25bae936cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>> .
>>>>>>>>>
>>>>>>>> -- 
>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>> Groups "qtile-dev" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>> send an email to [email protected].
>>>>>>>
>>>>>> To view this discussion on the web visit 
>>>>>>> https://groups.google.com/d/msgid/qtile-dev/381399b2-b97b-4fe3-934e-b4b3da576b28n%40googlegroups.com
>>>>>>>  
>>>>>>> <https://groups.google.com/d/msgid/qtile-dev/381399b2-b97b-4fe3-934e-b4b3da576b28n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "qtile-dev" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>>
>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/qtile-dev/edb68837-aa79-4ddd-8841-0047d2b827c6n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/qtile-dev/edb68837-aa79-4ddd-8841-0047d2b827c6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "qtile-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/qtile-dev/6186ba69-8ecf-44cb-a789-cf3619032b0cn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/qtile-dev/6186ba69-8ecf-44cb-a789-cf3619032b0cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/4860bff1-f3f5-4ba7-9495-04b55f05b5a7n%40googlegroups.com.

Reply via email to