You are not logged in.

#1 2017-04-13 20:22:54

dragos240
Member
Registered: 2009-05-23
Posts: 189

Adding a 3rd keymap to config breaks Awesome's close window.. [Solved]

This works fine and does not break Awesome's default close window keybind:

/etc/X11/xorg.conf.d/00-keyboard.conf

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,se"
        Option "XkbModel" "pc105"
        Option "XkbOptions" "terminate:ctrl_alt_bksp,grp:rctrl_toggle"
EndSection

This does:

/etc/X11/xorg.conf.d/00-keyboard.conf

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,se,dvorak"
        Option "XkbModel" "pc105"
        Option "XkbOptions" "terminate:ctrl_alt_bksp,grp:rctrl_toggle"
EndSection

I tried changing the "XkbModel" to "pc104" as well to see if that fixed the issue and it does not. I'm perplexed as to why this is breaking Awesome's default close window keybind which is MOD4+Shift+C. Anyone have any thoughts on the problem? I just want to be able to switch between us, se, and dvorak keymaps.

-Dragos240

Last edited by dragos240 (2017-04-14 11:35:24)

Offline

#2 2017-04-13 20:33:55

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: Adding a 3rd keymap to config breaks Awesome's close window.. [Solved]

Hi there dragos240

dvorak is not a keyboard layout but a variant. Here is my /etc/X11/xorg.conf.d/00-keyboard.conf:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "no,us"
        Option "XkbModel" "pc105"
        Option "XkbVariant" ",qwerty"
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

I use qwerty while you want to use dvorak.

Edit: I don't know the toggle part between qwerty and dvorak though. I only use the qwerty variant.

Last edited by olegabrielz (2017-04-13 20:41:14)


Be aware of my Newbie Powers

Offline

#3 2017-04-13 21:08:51

dragos240
Member
Registered: 2009-05-23
Posts: 189

Re: Adding a 3rd keymap to config breaks Awesome's close window.. [Solved]

olegabrielz wrote:

Hi there dragos240

dvorak is not a keyboard layout but a variant. Here is my /etc/X11/xorg.conf.d/00-keyboard.conf:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "no,us"
        Option "XkbModel" "pc105"
        Option "XkbVariant" ",qwerty"
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

I use qwerty while you want to use dvorak.

Edit: I don't know the toggle part between qwerty and dvorak though. I only use the qwerty variant.

Hmm... when I set dvorak as a keyboard layout, it worked and did what I wanted it to do but the problem I described existed.

With your fix I did this:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,se"
        Option "XkbModel" "pc105"
        Option "XkbVariant" "dvorak,"
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

So I made the us keymap dvorak which worked, and the se keyboard qwerty. That worked, but the same problem that I described in the first post existed and additionally I could no longer quit Awesome with the normal quit keybind. I had to use "killall awesome" to exit to lightdm.

-Dragos240

Offline

#4 2017-04-13 21:20:18

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: Adding a 3rd keymap to config breaks Awesome's close window.. [Solved]

Then someone with more skills would probably step up and take a look at this. I just noticed the small error in your /etc/X11/xorg.conf.d/00-keyboard.conf

The comma before the variant is not a typo:

The wiki wrote:

Option "XkbVariant" ",dvorak"


Be aware of my Newbie Powers

Offline

#5 2017-04-13 21:26:37

dragos240
Member
Registered: 2009-05-23
Posts: 189

Re: Adding a 3rd keymap to config breaks Awesome's close window.. [Solved]

olegabrielz wrote:

Then someone with more skills would probably step up and take a look at this. I just noticed the small error in your /etc/X11/xorg.conf.d/00-keyboard.conf

The comma before the variant is not a typo:

The wiki wrote:

Option "XkbVariant" ",dvorak"

Actually that was intentional. I didn't want to type swedish with dvorak. That's why I put the comma afterwards.

Offline

#6 2017-04-13 21:34:54

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: Adding a 3rd keymap to config breaks Awesome's close window.. [Solved]

dragos240 wrote:

Actually that was intentional. I didn't want to type swedish with dvorak. That's why I put the comma afterwards.

Aha. Thanks for teaching me a lesson too.


Be aware of my Newbie Powers

Offline

#7 2017-04-13 22:33:46

dragos240
Member
Registered: 2009-05-23
Posts: 189

Re: Adding a 3rd keymap to config breaks Awesome's close window.. [Solved]

No problem.

So I've fixed my problem by using xbindkeys to set the keymap to dvorak using Alt_R and back using Shift_R. It's a bit of a kludge, but it does work.

Offline

Board footer

Powered by FluxBB