Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

xkb

How can I make backspace act as escape using setxkbmap?

August 11, 2022 by Magenaut

There seem to be several options for setxkbmap such as -option caps:backspace which makes caps a backspace. However I cannot seem to find an option that makes backspace an escape key. How do I create a single setxkbmap command that changes the backspace key to an escape key?

Categories Q&A, Unix & Linux Tags keyboard-shortcuts, xkb Leave a comment

Override a few keycodes with XKB

August 11, 2022 by Magenaut

I want to shuffle a few keys around with XKB. (Why? On a laptop where some keys are inconveniently located.) I currently use xmodmap:

Categories Q&A, Unix & Linux Tags keyboard-layout, x11, xkb Leave a comment

Custom xkb layout in which one key creates two unicode code points

August 11, 2022 by Magenaut

I am writing a new custom keyboard layout for Xorg, but there is one particular glyph which does not exist in Unicode. It is, however, easy to create it by using a standard letter plus a combining diacritic mark.

Categories Q&A, Unix & Linux Tags keyboard, x11, xkb, xorg Leave a comment

Create and set custom keyboard layout

August 10, 2022 by Magenaut

I want to create and set a custom keyboard layout with setxkbmap. I created a file in ~/.xkb/prog with this content:

Categories Q&A, Unix & Linux Tags keyboard, keyboard-layout, xkb, xorg Leave a comment

Map Caps Lock to Control in Linux Mint

August 10, 2022 by Magenaut

I am running the latest version of Linux Mint with Cinnamon. I’m trying to map Caps Lock to Ctrl, but I cannot figure out how to do it. All web searches I’ve done have led me to older versions of Linux Mint (there is no keyboard layout option in my settings). How can I do this?

Categories Q&A, Unix & Linux Tags keyboard-shortcuts, linux-mint, x11, xkb, xmodmap Leave a comment

Map Super+[Left|Right] to Home/End

August 9, 2022 by Magenaut

How do I map key “Super” so, when combined with Left/Right, it produces keycode Home/End?

Categories Q&A, Unix & Linux Tags keyboard, keyboard-layout, keyboard-shortcuts, xkb Leave a comment

Remapping both Caps Lock and Shift+Caps Lock in xkb

August 8, 2022 by Magenaut

I am trying to configure xkb such that Caps Lock is mapped to the Compose key and Shift+Caps Lock functions as the traditional Caps Lock. I put the following in a new file called /usr/share/X11/xkb/symbols/gdwatson:

Categories Q&A, Unix & Linux Tags keyboard-layout, xkb Leave a comment

How do I change currently selected keyboard layout from command line?

August 7, 2022 by Magenaut

I have my keyboard layouts (two of them) and switching between them configured via the following command:

Categories Q&A, Unix & Linux Tags keyboard, keyboard-layout, x11, xkb Leave a comment

List all valid kbd layouts, variants and toggle options (to use with setxkbmap)

August 7, 2022 by Magenaut

Is there a way from command line to retrieve the list of all available
keyboard layouts and relative variants?

Categories Q&A, Unix & Linux Tags keyboard, keyboard-layout, xkb, xorg Leave a comment

Swap alt and super

August 7, 2022 by Magenaut

I have a Macbook Air that runs Linux. I want to swap the alt and super keys in both sides of the keyboard with each other.

Categories Q&A, Unix & Linux Tags keyboard-layout, linux, macintosh, xkb Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress