How do I map the physical Command Key to Control?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I'm running Kubuntu 18.04 on a 2014 MacBook Pro 13". I followed this answer and got 99% of the way there. However, I'm having a problem cycling through my open windows. In System Settings > Global Shortcuts, I set "Walk Through Windows Alternative" to Ctrl+Tab so that I can switch windows with the physical Command and Tab keys like on macOS. This seems to work fine when I press the physical Control and Tab keys. However, the problem arises when I press the physical Command and Tab keys. Instead of being able to cycle through my windows and choose whichever one to switch to, I am switched immediately to the most recent window. It is the same action as pressing and releasing the physical Control and Tab keys. I am unable to hold down the physical Command key and cycle through my list of open windows.



Here's the output of xev -event keyboard after pressing the physical Control key then the physical Command key:



KeyPress event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1734412, (113,120), root:(113,181),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1737452, (113,120), root:(113,181),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1738724, (113,120), root:(113,181),
state 0x0, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1742108, (113,120), root:(113,181),
state 0x4, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XFilterEvent returns: False


Here's the output of xmodmap:



xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x69), Control_L (0x85),
Control_R (0x86)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)






share|improve this question



















  • Can't you cycle through your windows by holding down Alt and then pressing Tab repeatedly? I don't have a Mac and so can't say for sure!
    – DK Bose
    Jun 11 at 2:22














up vote
0
down vote

favorite












I'm running Kubuntu 18.04 on a 2014 MacBook Pro 13". I followed this answer and got 99% of the way there. However, I'm having a problem cycling through my open windows. In System Settings > Global Shortcuts, I set "Walk Through Windows Alternative" to Ctrl+Tab so that I can switch windows with the physical Command and Tab keys like on macOS. This seems to work fine when I press the physical Control and Tab keys. However, the problem arises when I press the physical Command and Tab keys. Instead of being able to cycle through my windows and choose whichever one to switch to, I am switched immediately to the most recent window. It is the same action as pressing and releasing the physical Control and Tab keys. I am unable to hold down the physical Command key and cycle through my list of open windows.



Here's the output of xev -event keyboard after pressing the physical Control key then the physical Command key:



KeyPress event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1734412, (113,120), root:(113,181),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1737452, (113,120), root:(113,181),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1738724, (113,120), root:(113,181),
state 0x0, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1742108, (113,120), root:(113,181),
state 0x4, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XFilterEvent returns: False


Here's the output of xmodmap:



xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x69), Control_L (0x85),
Control_R (0x86)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)






share|improve this question



















  • Can't you cycle through your windows by holding down Alt and then pressing Tab repeatedly? I don't have a Mac and so can't say for sure!
    – DK Bose
    Jun 11 at 2:22












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm running Kubuntu 18.04 on a 2014 MacBook Pro 13". I followed this answer and got 99% of the way there. However, I'm having a problem cycling through my open windows. In System Settings > Global Shortcuts, I set "Walk Through Windows Alternative" to Ctrl+Tab so that I can switch windows with the physical Command and Tab keys like on macOS. This seems to work fine when I press the physical Control and Tab keys. However, the problem arises when I press the physical Command and Tab keys. Instead of being able to cycle through my windows and choose whichever one to switch to, I am switched immediately to the most recent window. It is the same action as pressing and releasing the physical Control and Tab keys. I am unable to hold down the physical Command key and cycle through my list of open windows.



Here's the output of xev -event keyboard after pressing the physical Control key then the physical Command key:



KeyPress event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1734412, (113,120), root:(113,181),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1737452, (113,120), root:(113,181),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1738724, (113,120), root:(113,181),
state 0x0, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1742108, (113,120), root:(113,181),
state 0x4, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XFilterEvent returns: False


Here's the output of xmodmap:



xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x69), Control_L (0x85),
Control_R (0x86)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)






share|improve this question











I'm running Kubuntu 18.04 on a 2014 MacBook Pro 13". I followed this answer and got 99% of the way there. However, I'm having a problem cycling through my open windows. In System Settings > Global Shortcuts, I set "Walk Through Windows Alternative" to Ctrl+Tab so that I can switch windows with the physical Command and Tab keys like on macOS. This seems to work fine when I press the physical Control and Tab keys. However, the problem arises when I press the physical Command and Tab keys. Instead of being able to cycle through my windows and choose whichever one to switch to, I am switched immediately to the most recent window. It is the same action as pressing and releasing the physical Control and Tab keys. I am unable to hold down the physical Command key and cycle through my list of open windows.



Here's the output of xev -event keyboard after pressing the physical Control key then the physical Command key:



KeyPress event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1734412, (113,120), root:(113,181),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1737452, (113,120), root:(113,181),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1738724, (113,120), root:(113,181),
state 0x0, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x4c00001,
root 0x169, subw 0x0, time 1742108, (113,120), root:(113,181),
state 0x4, keycode 133 (keysym 0xffe3, Control_L), same_screen YES,
XKeysymToKeycode returns keycode: 37
XLookupString gives 0 bytes:
XFilterEvent returns: False


Here's the output of xmodmap:



xmodmap: up to 4 keys per modifier, (keycodes in parentheses):

shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x69), Control_L (0x85),
Control_R (0x86)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)








share|improve this question










share|improve this question




share|improve this question









asked Jun 11 at 0:25









yefim

31




31











  • Can't you cycle through your windows by holding down Alt and then pressing Tab repeatedly? I don't have a Mac and so can't say for sure!
    – DK Bose
    Jun 11 at 2:22
















  • Can't you cycle through your windows by holding down Alt and then pressing Tab repeatedly? I don't have a Mac and so can't say for sure!
    – DK Bose
    Jun 11 at 2:22















Can't you cycle through your windows by holding down Alt and then pressing Tab repeatedly? I don't have a Mac and so can't say for sure!
– DK Bose
Jun 11 at 2:22




Can't you cycle through your windows by holding down Alt and then pressing Tab repeatedly? I don't have a Mac and so can't say for sure!
– DK Bose
Jun 11 at 2:22















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045435%2fhow-do-i-map-the-physical-command-key-to-control%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045435%2fhow-do-i-map-the-physical-command-key-to-control%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491