#asahi · 2022-06-06 13:29
nsklausyou made a bad paste#asahi · 2022-06-06 13:29
nsklausobviously your terminal tells you#asahi · 2022-06-06 13:29
nsklausno#asahi · 2022-06-06 13:28
nsklausthat note of mine is a bit old now it date a few years back, it still works but sometimes the argument order for the command got changed and need small tweak to adapt it#asahi · 2022-06-06 13:27
nsklausok so for you it's probably: setxkbmap -layout us -variant mac#asahi · 2022-06-06 13:26
nsklauswhat's your keyboard type ? uk, us, de or something else ?#asahi · 2022-06-06 13:26
nsklaustyping "setxkbmap" alone won't do it, it needs arguments#asahi · 2022-06-06 13:25
nsklausno#asahi · 2022-06-06 13:25
nsklausDE ?#asahi · 2022-06-06 13:25
nsklausUK ? #asahi · 2022-06-06 13:25
nsklausUS ?#asahi · 2022-06-06 13:25
nsklauswhat's your keyboard layout ?#asahi · 2022-06-06 13:24
nsklaususe command setxkbmap to avoid the log out / log in #asahi · 2022-06-06 13:24
nsklausor#asahi · 2022-06-06 13:24
nsklauseither log out/ and re- login#asahi · 2022-06-06 13:24
nsklausyou need to reload your keyboard layout#asahi · 2022-06-06 13:23
nsklaus just editing the file and saving it, isn't enough,#asahi · 2022-06-06 13:23
nsklausthat is normal,#asahi · 2022-06-06 13:22
nsklausyou spelled COntrol_L instead of Control_L#asahi · 2022-06-06 13:22
nsklausComradeMisato[m]: watchout you made a typo: #asahi · 2022-06-06 13:21
nsklaus(like: "setxkbmap -layout fr -variant mac" in case your macbook has a french keyboardr layout like mine#asahi · 2022-06-06 13:21
nsklausnote that once that file got edited you either need to log out and log back in again to make it effective, or if you don't want to log out then just reload keyboard layout , from your term just do a setxkbmap ...#asahi · 2022-06-06 13:19
nsklausso i could always have cmd-c/cmd-v for copy/paste functionality#asahi · 2022-06-06 13:19
nsklausthis trick worked for me on all linux distro i tested#asahi · 2022-06-06 13:18
nsklausjust do what's above that#asahi · 2022-06-06 13:18
nsklausignore the paragraph under "swap ctrl and alt"#asahi · 2022-06-06 13:18
nsklausyou need to change 4 lines#asahi · 2022-06-06 13:17
nsklausopen your file /usr/share/X11/xkb/symbols/pc and compare it to what i made in that paste#asahi · 2022-06-06 13:17
nsklausFranciscoFernandes[m]: https://0x0.st/oMBg.txt#asahi · 2022-06-06 13:17
nsklausthis is the actual instruction that tell it to map ctrl key to the cmd key#asahi · 2022-06-06 13:16
nsklausnotice how the the string in the { } changed from Control_L to Super_L#asahi · 2022-06-06 13:15
nsklausComradeMisato[m]: key <LCTL> { [ Super_L ] }; <-- this is the modified line. the original shows: key <LCTL> { [ Control_L ] }; #asahi · 2022-06-06 13:15
nsklausso i can use cmd-c and cmd-v to copy / paste everywhere#asahi · 2022-06-06 13:14
nsklausi always do it#asahi · 2022-06-06 13:14
nsklausjannau: that paste i linked above i use it since a few years#asahi · 2022-06-06 13:14
nsklauskey <LCTL> { [ Super_L ] }; <-- meaning: take lctl (left control key) and map it to super left (meaning cmd left)#asahi · 2022-06-06 13:13
nsklausif you read the line it says:#asahi · 2022-06-06 13:13
nsklausComradeMisato[m]: my paste shows it as it should become#asahi · 2022-06-06 13:12
nsklausi mean pressing cmd key would be then equivalent to press ctrl#asahi · 2022-06-06 13:12
nsklausmy paste does works for that, at least it works for me since a long while and effectively switch ctrl key with cmd #asahi · 2022-06-06 13:11
nsklausnot opt (alt) and cmd keys#asahi · 2022-06-06 13:11
nsklausjannau: i think he asked to swap ctrl with cmd keys#asahi · 2022-06-06 13:06
nsklauskey <LCTL> { [ Super_L ] }; <-- this is already the modified line#asahi · 2022-06-06 13:06
nsklausbut the paste is correct#asahi · 2022-06-06 13:06
nsklausmy explanation is broken#asahi · 2022-06-06 13:04
nsklauscmd-c and cmd-v will now be used to copy/paste#asahi · 2022-06-06 13:04
nsklausotherwise this will work globaly#asahi · 2022-06-06 13:04
nsklausnote you'll also need to edit your terminal shortcuts to match "ctrl-c" and "ctrl-v" instead of the usual "shift-ctrl-c" and "shift-ctrl-v"#asahi · 2022-06-06 13:03
nsklaushttps://0x0.st/oMBg.txt#asahi · 2022-06-06 13:01
nsklaus(adapt that last point depending your usual layout, for me it's french)