You are not logged in.

#1 2008-10-18 12:14:47

Lazze
Member
From: Bangkok, Thailand
Registered: 2008-09-28
Posts: 133

Swap alt with super on keyboard

Hi

I have a mac keyboard where the alt and cmd (super) key location has been swapped, both my super keys is besides the space key instad of the alt key.

I've used a program in windows to swap the keys making the super key work as an alt key and vice versa. How do i achieve the same thing in arch? I'm mostly running gnome but I would like to make it work even when I'm not.

Thanks
// Lasse

Offline

#2 2008-10-18 23:22:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Swap alt with super on keyboard

Lazze wrote:

Hi

I have a mac keyboard where the alt and cmd (super) key location has been swapped, both my super keys is besides the space key instad of the alt key.

I've used a program in windows to swap the keys making the super key work as an alt key and vice versa. How do i achieve the same thing in arch? I'm mostly running gnome but I would like to make it work even when I'm not.

Thanks
// Lasse

Welcome to the forums.

You can use xmodmap. Search the web for something like "xmodmap swap super key". I can't give you exact details because I've never done this.

Offline

#3 2008-10-19 09:44:15

Lazze
Member
From: Bangkok, Thailand
Registered: 2008-09-28
Posts: 133

Re: Swap alt with super on keyboard

Thanks and thanks, I will look it up when I find myself some spare time.

Offline

#4 2008-10-27 00:50:37

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: Swap alt with super on keyboard

I'm sure you've already done it with xmodmap by now, but another way it can be done is by by specifying the option directly in your xorg.conf like so…

Section "InputDevice"
    Identifier "Keyboard0"
    # ...
    Option "XkbOptions" "altwin:swap_lalt_lwin"
    # ...
EndSection

See /usr/share/X11/xkb/rules/base.lst for a complete list of options.

Offline

#5 2008-10-27 07:24:11

Lazze
Member
From: Bangkok, Thailand
Registered: 2008-09-28
Posts: 133

Re: Swap alt with super on keyboard

Yeah, I've already solved it using xmodmap, but this method seems a bit more clean.
I'll try it out when I come home to my beloved arch machine.

Offline

Board footer

Powered by FluxBB