You are not logged in.

#1 2019-03-07 19:13:07

storms
Member
Registered: 2018-11-09
Posts: 26

setxkbmap us,pt not working.

Hey guys!
so i have been messing with my i3 and what not, and i found some problems.
when using a config of someone elses the keys gets messed up.
This is due to how the keyboard language settings interact with i3.
So if the keybinds were made for an english keyboard they will work fine, but if the key layout is different they get all messed up.
One solution that i found is giving it 2 options, so US first so that i3 binds the keys and then the PT so it changes the already bound keys to the right places...
the problem is that i can not for the life of me get it working.

i tried

setxkbmap us,pt

doesnt work, it stays on US

i tried separating them:

setxkbmap us
setxkbmap pt

doesnt work, it stays on US

so aside from the obvious "maybe you should change the custom US keybinds to PT ones, what can i do?
the us,pt command should work...

EDIT: i forgot to say:
this is all into a little scrip that auto executes thats on the i3/config file.
exec --no-startup-id script

Last edited by storms (2019-03-07 19:19:30)

Offline

#2 2019-03-15 16:37:47

geolimber
Member
From: Chile
Registered: 2019-02-20
Posts: 6

Re: setxkbmap us,pt not working.

I have this line in my i3 config file, maybe this could work for you as a template.

exec_always "setxkbmap -model pc104 -layout us,ru,latam,ua -variant ,, -option grp:alt_shift_toggle"

Offline

#3 2019-03-29 18:56:20

storms
Member
Registered: 2018-11-09
Posts: 26

Re: setxkbmap us,pt not working.

hey, thanks for the reply
i tried your solution

setxkbmap -model acer_laptop -layout us,pt -variant ,, -option caps:super

sadly, it did not work sad

maybe its because its an acer? i dont even know....

the laptop is an

Acer Aspire E5-571G

Offline

Board footer

Powered by FluxBB