You are not logged in.

#1 2019-01-02 21:00:05

johnha
Member
Registered: 2018-07-01
Posts: 6

Swapping CMD and CTRL on a Mac keyboard

Hi,

After using #! and BL in VMs and Dells and Thinkpads, I'm using BL on a MacBook now.

I wonder if someone could point me towards swapping the CTRL and CMD keys so I can use CMD-C and CMD-V to copy and paste (instead of ctrl).

Kind of like this advice, but specific to BL: https://stackoverflow.com/questions/434 … k-on-linux

Thank you guys!

Offline

#2 2019-01-02 21:37:20

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,460

Re: Swapping CMD and CTRL on a Mac keyboard

It comes down to xmodmap incantations, that is assigning the correct keysymbol to the command key. Check this advice (the commands would need to be made persistent in the Openbox autostart script): https://askubuntu.com/questions/131900/ … acbook-pro.

For debugging, type 'xev' in a terminal an focus the appearing white window. When you press the Command and Ctrl keys, after the procedure, the terminal should tell you that it registered a Control_L when pressing the Command key.


A silent kite against the blue, blue sky

Offline

#3 2019-01-02 22:29:08

johnha
Member
Registered: 2018-07-01
Posts: 6

Re: Swapping CMD and CTRL on a Mac keyboard

Thank you @twoion!  That did the trick - but I am still not satisfied. I think I'd like to explore a more holistic solution, the goal being that I would like to use CMD-c CMD-x CMD-v for copy/cut/paste. But keep the CTRL key as is for most all else.

Sorry for the vagueness - I'm trying to figure out how I can adapt to switching between macOS and BL and have some sense of continuity between the two. I normally work with two laptops and currently I've got a macbook pro running macos and an older macbook pro running BL.

Offline

#4 2019-01-03 00:51:23

damo
....moderator....
Registered: 2015-08-20
Posts: 5,009

Re: Swapping CMD and CTRL on a Mac keyboard

Maybe map Control_R instead to the Super key? That leaves the left Ctrl to do all the things it usually does.

Another way might be to use xdotool. Set the "Super + C/V/X" keybinds in your rc.xml to run the xdotool simulated key commands.

Last edited by damo (2019-01-03 00:57:42)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

Board footer

Powered by FluxBB