recentpopularlog in

kme : keymap   28

How do you remap a key to the Caps Lock key in Xubuntu? - Ask Ubuntu
Another way:
<code class="language-bash">sudo vi /etc/default/keyboard</code>
then find the line that starts with XKBOPTIONS, and add ctrl:nocaps to make Caps Lock an additional Control key or ctrl:swapcaps to swap Caps Lock and Control.

For example, mine looks like
code class="language-bash">XKBOPTIONS="lv3:ralt_alt,compose:menu,ctrl:nocaps"</code>
hen run
<code class="language-bash">sudo dpkg-reconfigure keyboard-configuration<code>
The reason this way is better is that it will take effect on the virtual consoles (e.g. Ctrl+Alt+F1) as well as in the graphical desktop.
linux  ubuntu  xubuntu  swapcapslockandctrl  capslock  keymap  console  solution 
9 weeks ago by kme
Mapping keys in Vim - Tutorial (Part 1) | Vim Tips Wiki | FANDOM powered by Wikia |
So put these lines in ~/.vim/after/ftplugin/mediawiki.vim in order for 'j' and 'k' to just "do what I mean" in MediaWiki / Markdown source files.
The following commands map the 'j' key to execute 'gj' and the 'k' key to execute 'gk'. These are useful for moving between long wrapped lines.

<code class="language-viml">:nnoremap k gk
:nnoremap j gj</code>
vim  keymap  remapping  configfile  essential  movein 
march 2019 by kme
The Great Insert-Key Mystery!
I find the right one: The "Help" key (between Delete and F14) is the Mac equivalent of the PC Insert key.
mac  osx  keyboard  keymap  annoyance  solution  windows 
april 2014 by kme
Remap caps lock to Ctrl in console (tty) (Page 1) / Newbie Corner / Arch Linux Forums
Assuming you are using systemd, you should create your custom keymap and link to it from /etc/vconsole.conf, like so:

arch  linux  console  vim  keymap  capslocktocontrol  maybesolution  initramfs  needshelp 
january 2014 by kme
xdotool - command-line X11 automation tool
From the "SENDEVENT NOTES" section:
It is important to note that for key and mouse events, we only use XSendEvent when a specific window is targeted. Otherwise, we use XTEST.

Here's a solution that works for most X clients (some modal dialog boxes and Guake excepted, for the moment):

#"xdotool key Shift+End"
"xdotool getactivewindow key Shift+End"
Alt + Shift + Right
#"xdotool key End"
"xdotool getactivewindow key End"
Alt + Right

#"xdotool key Shift+Home"
"xdotool getactivewindow key Shift+Home"
Alt + Shift + Left
#"xdotool key Home"
"xdotool getactivewindow key Home"
Alt + Left
xdotool  xbindkeys  solution  fuckina  likeamac  keymap  remap  keyboard  annoyance 
december 2013 by kme
xmodmap - How to swap Ctrl and Fn on a Lenovo Thinkpad keyboard? - Ask Ubuntu
You are probably using a Lenovo keyboard, which reports the Fn as XF86WakeUp. Normally Fn does not register an xev event at all because it is handled by the BIOS, therefore you cannot remap it.

The fact that it is reported as XF86WakeUp gives a lot of confusion, as you can see in this bug report, but it is not really a bug, to quote comment 27 of that bug report:

It's not really a bug. Fn is the wakeup key when the machine is suspended. If anyone wants to map it to other functions, then that's okay, but being able to do that is not universal... Fn on ThinkPads and LenovoPads is a magical/special key. If only generates its own code if not combined with any of the other magic (blue highlighted) key combinations and that is more of a fluke than anything.
thinkpad  linux  keymap  fnkey  remap  annoyance  solution 
december 2013 by kme
IBM Thinkpad Fn-Key - Support - AutoHotkey Community
Here's an example of assigning a hotkey by it's scancode:

SC163::send,{Lwin down}
SC163 up::send,{Lwin up}
thinkpad  windows  autohotkey  keymap  remapping  keyboard  maybesolution 
december 2013 by kme
Mac Switchers Tip: Remap the Home and End keys
I have found a way to "fix" this problem by editing the default keybindings file, ~/Library/KeyBindings/DefaultKeyBinding.dict. Create the directory and / or the file if they're not already there, and make it look like this:

/* Remap Home / End to be correct :-) */
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
mac  osx  annoyance  likeapc  keyboard  keymap  remapping 
december 2013 by kme
linux - Remap Super+arrow key to home/end - Super User
How about a combination of xdotool and xbindkeys, with a .xbindkeysrc like:

"xdotool key Next"
Mod4 + Down

"xdotool key Prior"
Mod4 + Up
linux  xdotool  xbindkeys  x11  keymap  keyboard  likeamac  maybesolution 
december 2013 by kme
KB2686509 repeatedly fails with Error code 0x8007F0F4 From "The SBS Diva: ChannelPro-SMB
Solution: Disable SharpKeys remappings (no reboot required), then reinstall the patch.
solution  windows  winxp  update  patch  bug  keyboard  keymap  alternatekeymap 
june 2012 by kme
The Linux keyboard and console HOWTO: Examples of use of loadkeys and xmodmap
Switching Caps Lock and Control on the keyboard (assuming you use keymaps 0-15; check with dumpkeys | head -1)

% loadkeys
keymaps 0-15
keycode 58 = Control
keycode 29 = Caps_Lock
<press Ctrl + D>
linux  console  keyboard  solution  capslocktocontrol  alternatekeymap  keymap  movein 
july 2010 by kme

Copy this bookmark:

to read