How can I capture raw HID input on Linux?

Short version of what I want to accomplish: I have a foot pedal (INFINITY-IN-USB-1, if that's of any interest) that is implemented as a generic HID device, and I would like it to be behave as Ctrl...

Error message "error: stray '\302' in program"

I'm using Code::Blocks on Ubuntu 10.10 (Maverick Meerkat). I have connected a Mac keyboard and set the keyboard settings to "Swiss German Mac". Now whenever I write an equals sign, followed by a...

CMD & control keys swap in ubuntu

I have an Apple keyboard with a cmd key which I'm trying to swap with the control key. From googleing the problem and searching across the forum I came with a several solutions. Unfortunately...

How do I light up the Caps Lock light with xset?

I wrote a little fetchmail script that checks the remote server and plays an audio file when I have new mail. I also wanted to also light up one of my keyboard lights when the mail was available...

how to map control + key to produce the less and greater keys with xmodmap?

So I'm trying to create a combination of keys to generate ISO keys for the Portuguese layout, the key in question is the < >, pressing it will normally generate the < character, < > + Shift will...

xmodmap clear command

I am having a hard time understanding the xmodmap clear command, here is a an example: keycode 66 = Control_L clear Lock add Control = Control_L keycode 117 = Caps_Lock add...

APL Keymapping on Linux (GNU APL)

My Grandfather was an APL programmer at IBM back in the 60s/70s. He has recently started using Linux and I have been helping him to setup and use GNU APL (http://www.gnu.org/software/apl/). The...

Remap Win, Ctrl and Alt keys on Linux

The question: How can I remap (swap) modifier keys system-wide on Linux? Explanation: I want to install Debian Jessie on my PC to use it with Emacs. I have a MacBook with Emacs and use it...

How to make Windows key the IntelliJ IDEA Command/Meta key under Windows?

I'm using IntelliJ IDEA 14 under OS X, Windows and Ubuntu for several months, found that the keymap Mac OS X 10.5+ is more suitable for me and want to keep same experience under all platforms. OS...

Gnome 3 - dconf / gsettings - how to assign multiple keybindings?

Goal: Assign both the Super_L or Super_R keys as triggers for the overlay menu. Environment: Gnome 3.26.2, Fedora 27, Dell XPS 9550, Kinesis Advantage2 Why: For work I use a laptop either by...

Pointer_Button4, 5 on xmodmap doesn't work although Pointer_Button1, 2, 3 work

I want to wheel up and wheel down with keyboard. Pointer_Button1, Pointer_Button2 and Pointer_Button3 are worked correctly on xmodmap. But Pointer_Button4 and Pointer_Button5 doesn't work. Part of...

Making xmodmap changes permanent on raspberry pi

Running $ xmodmap ~/.xmodmap with the .xmodmap file below in my home directory deactivates my Alt keys. However, I cannot find a way to make these changes permanent. I have tried putting the...

Changing keyboard keys on new Ubuntu 18.04, xmodmap not working any more?

I have upgraded my ubuntu to the latest 18.04 version and now my manual set shortcuts for some symbols on the keyboard are not working any more. Usually I was doing it by executing the following...

karabiner elements (and xmodmap): using left command as ctrl and right command as alt doesn't work for the zxcv row on the keyboard

My configuration: Use key on the left of the spacebar (left command) as Control Use the key on the right of the spacebar (right command) as Alt Purpose: press both Control and Alt with thumbs...

Remap modifiers keys to press multiple modifiers at once

I would like to remap a modifier key, in my case CAPS_LOCK, to send multiple modifiers at once on its one. By that, I mean not a specific combination of keys, like <Ctrl>+C. While the second part,...

Mapping win+n to Prior(PageUp) on X and/or i3

I want to map a key combination Win+n (or Mod4+n) to a single key event "Prior" (also called PageUp) and that "Prior" is cleared of any modifiers. I am already deep down in the rapidhole, so only...

How to disable certain keyboard keys in yocto

I want to disable certain keys while creating image in yocto. I know in users pace we can achieve this with xmodmap utility but I want to achieve this kernel itself. I checked...

NeoVim takes two second to quit via ctrl + q key bind

I'm using following config in .vimrc. Ctrl + q key bind takes 2 seconds to quit vim. " swap Escape and Caps Lock au VimEnter * silent !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' au...

How to rebind Home and End keys in Ubuntu 19.04

Hello I am trying rebind End and Home to CTRL+Right, CTRL+Left (like Mac Os). I am tried with xmodmap like this xmodmap -e 'keycode 113 = Left NoSymbol Home' But this is set Left arrow to Home...

How to get key modifiers in Linux Chrome

How can my javascript program determine which modifiers were pressed along with a keydown event in Chrome on Linux? I tried this code: document.addEventListener('keydown', function(e) { ...

Get keycode from key name in XCB?

I'm currently working a small XCB application, but I'm having a hard time finding an alternative for the following routine: XKeysymToKeycode(display, XStringToKeysym("Tab")) I managed to get the...

regular expression to match up to first instance of repeated character

My example data: l1 [1] "xmms-1.2.11-x86_64-5" "xmms-1.2.11-x86_64-6" [3] "xmodmap-1.0.10-x86_64-1" "xmodmap-1.0.9-x86_64-1" [5] "xmodmap3-1.0.10-x86_64-1" "xmodmap3-1.0.9-x86_64-1" I...

Using MacOS shortcuts in IntelliJ running on Ubuntu in Parallels Desktop

I have Ubuntu 18.04 running in Parallels Desktop environment on my Mac (MacOS Catalina). IntelliJ is installed in this Ubuntu environment. I want to use MacOS layout in my IntelliJ. Under Ubuntu,...

Manjaro linux compose key gives incorrect behavior

I installed Cinnamon Manjaro linux on my 2017 QWERTY Macbook Air. Kernel: 5.4.27-1-MANJARO. I've tried changing my keyboard languages, but my compose key always produces the same behavior -- that...

Background and top bar configurations does not apply at startup

I am on Manjaro Linux and using dwm. I have made some changes (additions) in my ~/.xinitrc file to have my wallpaper set and display date & time on top bar when I log in. But I cannot have these...

How to program mouse buttons in Ubuntu to change the scroll

I have a mouse with vertical and horizontal scroll wheels. I want to use the thumb wheel (currently programmed to scroll horizontally) to scroll vertically instead, as I get pain in my index...

AwesomeWm I need advice on mapping more modifier keys

I need to find another couple modifiers for key mappings. The Awesome Docs state that valid modifiers are Any, Mod1, Mod2, Mod3, Mod4, Mod5, Shift, Lock and Control, I am unclear of some of these...

Prevent content shrinking in awesomewm

I'm customizing my awesome-wm taskbar and what I'm trying to achieve is : have a tasklist with fixed items width, which can shrink if there is not enough space have a button right after the...

Awesome WM: Placing tiled clients in specific order on startup

I've installed Awesome WM about a week ago. Since then I've been trying to place terminal clients (bare terminal and vim, vifm, htop) in a specific order on startup. Here is a visual...

Is there a way to remap Caps_Lock to be the escape key on vscode's vim?

Problem I want to use Caps_Lock as the key to exit insert mode in Visual Studio code's vim extension. I have already remapped the keys in Xorg with Xmodmap, but Visual studio doesn't seem to...