You are not logged in.

#1 2015-09-01 03:57:23

Bloon
Member
Registered: 2015-09-01
Posts: 2

Make LCtrl + LAlt = AltGr

Hey, so ive been trying to get Ctrl+alt function as altgr, so i can make '@'  using ctrl+alt+2 (im using Danish keyboard and such) and in windows ctrl+alt+2 = @ and so on,
is there anyone that can help me? or show me in the right direction (ive googled and tried many different things and still cant figure it out, the closest i got was to get LAlt to work as AltGr but then i couldnt use alt tab and such with were a big pain too)

Thanks in advance, really hope you guys can help cause im really liking Arch right now except this and 1 other issue

Last edited by Bloon (2015-09-01 03:58:04)

Offline

#2 2015-09-01 13:30:26

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: Make LCtrl + LAlt = AltGr

Have a look at all the options in /usr/share/X11/xkb/rules/base.lst, there may be something there that you can use.

Read `man setxkbmap` for usage instructions.


Jin, Jîyan, Azadî

Offline

#3 2015-09-02 08:18:46

Bloon
Member
Registered: 2015-09-01
Posts: 2

Re: Make LCtrl + LAlt = AltGr

Thank you, i checked and i must admit its too comlicated for me so i found a temp solution to bind the keys in xbindkeys, heres the bits for xbindkeys for those interested(cant promise they work for you as they work for me)

"xvkbd -xsendevent -text '@'"
    m:0xc + c:11
    Control+Alt + 2

"xvkbd -xsendevent -text '£'"
    m:0xc + c:12
    Control+Alt + 3

"xvkbd -xsendevent -text '$'"
    m:0xc + c:13
    Control+Alt + 4

"xvkbd -xsendevent -text '{'"
    m:0xc + c:16
    Control+Alt + 7

"xvkbd -xsendevent -text '['"
    m:0xc + c:17
    Control+Alt + 8

"xvkbd -xsendevent -text ']'"
    m:0xc + c:18
    Control+Alt + 9

"xvkbd -xsendevent -text '}'"

Offline

Board footer

Powered by FluxBB