Questions tagged [xbindkeys]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
133 views

prevent xbindkeys from overriding mouse click when used for mouse button chording

I am trying to set up some mouse button chording, inspired by the Acme text editor: http://acme.cat-v.org/mouse On Windows and Mac, I was able to set up the following using AutoHotKey and Hammerspoon ...
Levi's user avatar
  • 61
0 votes
0 answers
19 views

Xbindkeys to make CTRL + ALT work like ALT GR

I've been able to get CTRL + ALT working (mostly) with xbindkeys and xvkbd. However for it to work I initially have to press it twice. After that it works smoothly. Also this doesn't work in some ...
RoseannePeeters's user avatar
0 votes
0 answers
60 views

Xbindkeys to make CTRL + ALT act like ALT GR

I've been able to get CTRL + ALT working (mostly) with xbindkeys and xvkbd. However for it to work I initially have to press it twice. After that it works smoothly. Also this doesn't work in some ...
RoseannePeeters's user avatar
0 votes
0 answers
37 views

How to remap mouse keys? (special case)

I remapped 2 mouse buttons, #4 and #7. Now they are used as 'Home' and 'End' keys, very useful in firefox. Unfortunately all the extra keys on my mouse are identical to the numeric keys on the ...
CaneRandagio's user avatar
0 votes
1 answer
74 views

How to assign various commands to a mouse button, time dependent in xbindkeys?

I need to execute differents commands respect at the time I keep pressed a mouse key. I was looking for an alternative to XMBC in linux, I'm using xbindkeys from a time to now but what I miss from my ...
ltapia's user avatar
  • 1
0 votes
1 answer
220 views

How to program a Koolertron macropad?

I bought this macropad awhile ago but I haven't been able to figure out how to program it. Right now it types keys like a normal keyboard but I want to beable to run commands when I press the buttons. ...
Dan's user avatar
  • 11
0 votes
1 answer
96 views

Is there any way to make xbindkeys intercept hotkeys for certain programs only?

Let's say I have two programs: Program A and Program B. I want to use some hotkey to trigger certain action in Program A. So, I add corresponding lines in xbindkeysrc (telling the daemon what to do ...
S. N.'s user avatar
  • 165
0 votes
0 answers
32 views

Binding command to hotkey in .xbindkeysrc for a specific program results in the hotkey to stop working in other programs

I like to use middle click to get back to the previous page when browsing the Internet. To make it possible I added the following lines into .xbindkeysrc: "~/.hotkeys/Middle_click.sh" ...
S. N.'s user avatar
  • 165
0 votes
0 answers
24 views

Mouse sends Keyboard Events

I want to bind a button on my Scimitar mouse, but it sends a keyboard event, so when I press the same button on my actual keyboard, it sends the same key event. Is there any way to add device id or ...
Jason Hunter's user avatar
0 votes
0 answers
8 views

browser history mouse button inactive after mapping it with xbindkeys

I bound a script to a thumb mouse button but now that mouse button doesn't work in the browser (or probably anywhere else) anymore. Is there a way to not block a mapped key? "/home/xxx/bin/...
br4nnigan's user avatar
  • 116
0 votes
0 answers
174 views

How can I assign the command key to the contextual menu one in Linux?

On Linux, I would like to replicate the function of the Windows key: ... in the Menu key: I have tried using xbindkeys, but both keys seem to have the same command name: $xbindkeys -k; menu key &...
Martel's user avatar
  • 113
0 votes
1 answer
159 views

xbindkeys, xvkbd, and Firefox

I'm trying to map alt+j to the down key and it's working everywhere but Firefox. In ~/.xbindkeysrc: "xvkbd -xsendevent -text "\[Down]"" alt + j then with xbindkeys running, alt+...
Andrew's user avatar
  • 101
0 votes
1 answer
136 views

xbindkeys bind cursor move to right or left key press

I would like to program my mouse such that whenever the cursor is shifted right or left, the OS interprets this as a right key press or left key press. Which mouse events correspond to cursor right ...
Cheetaiean's user avatar
3 votes
1 answer
613 views

How to Bind Alt+Scroll for Zooming (Screen Magnifier) in Awesome Window Manager

In Awesome Window Manager, how can I bind alt+Scroll for zooming? For example, in KDE Plasma, it is done this way: 1) sudo apt install xbindkeys 2) Save the text below into ~/.xbindkeysrc : "...
Lonnie Best's user avatar
  • 5,053
1 vote
1 answer
109 views

Can I stop NetworkManager from using my media key?

I am on a Thinkpad 460S. There is a media key on the keyboard to cut the wifi via Rfkill (F8). NetworkManager is grabbing the key and everytime it is pressed, disable or reenable the rfkill switch. I ...
Samuel-Zacharie Faure's user avatar
1 vote
0 answers
95 views

bind held key without blocking typing

I have a foot pedal that I would like to toggle a file's contents when pressed and released. I have got the foot pedal acting like a normal key with a keycode and disabled it from repeating with xset -...
utamdekq's user avatar
2 votes
0 answers
874 views

xbindkeys claims there is a conflict with another program, which makes it unable to grab all the defined keys

I installed xbindkeys to catch my custom key shortcuts, and xte in order to emulate the key presses i want to execute. This does work, but with a lot of issues. I have to press my key combination very ...
Digital Ninja's user avatar
2 votes
1 answer
6k views

What are "zsh" commands for cut/copy/paste?

I want to configure zsh and bind its cutting, copying and pasting commands (or maybe they're called widgets idk) to different escape sequences, the ones that my terminal program sends across. Problem ...
8c6b5df0d16ade6c's user avatar
1 vote
1 answer
630 views

xbindkeys won't execute bash script

I have a bash script for enabling and disabling wifi that I want to bind to shortcut: #!/bin/bash if [ $(rfkill list wifi | grep "Soft blocked: yes" | wc -l) -gt 0 ] ; then rfkill ...
cheshire's user avatar
  • 157
1 vote
1 answer
2k views

How to use xbindkeys?

I am trying to run Chromium when "Ctrl + shift + Alt + p" is pressed. I Install xbindkeys and xbindkey-config. Next, creating a file at home directory (touch ~/.xbindkeysrc), then set it as default (...
Daeshaun Morrison's user avatar
1 vote
0 answers
269 views

xbindkeys won't run in ExecStart script but runs in regular script

I have a script start.sh which is the ExecStart of a service I have (that is called by systemd). When I add the line DISPLAY=:0 xbindkeys in my start.sh script, it does not start xbindkeys. user@...
Wimateeka's user avatar
  • 995
3 votes
1 answer
378 views

Xbinkeys does not work with mode_switch

I'm trying to use xbindkeys with an event that is produced with mode_switch + <key>, but xbindkeys is triggered with only the <key> instead of the combination of it with the mode_switch. ...
Radivarig's user avatar
  • 1,124
1 vote
0 answers
305 views

Xbindkeys: Execute command in current terminal

Is there a way to, instead of executing the command in the foreground, execute a command via Xbindkeys in the current Terminal? Similar to just pasting the command and pressing enter.
Emily Wotruba's user avatar
1 vote
1 answer
482 views

How do I install xbindkeys on enterprise linux 6? (Centos/RHEL/OEL 6)

Is there a way to install xbindkeys on rhel 6 based distro? I want to bind keys from my mouse button to run a script.
Christophorus Reyhan's user avatar
7 votes
2 answers
4k views

How to remap keys only for a particular keyboard in Linux?

I have a numpad connected via USB and my goal is to be able to remap keys on that numpad so they can run custom commands or be mapped to other key combinations. I have this in my .xbindkeysrc file: ~...
orion3's user avatar
  • 211
1 vote
0 answers
663 views

Ubuntu xBindKeys not working for mouse buttons

I've configured back and forward button a while ago with xBindKeys and I am sure that everything was fine. Yesterday I've noticed that those two functionalities somehow swapped. Back button functions ...
Dandy's user avatar
  • 111
3 votes
1 answer
539 views

How to use "Alt Gr" in xbindkeys?

I cant figure out the code to use Alt Gr in xbindkeys. I tried ISO_Level3_Shift, but that doesn't work.
user321691's user avatar
0 votes
1 answer
335 views

How to break a bash script initiated with xbindkeys?

I initiated a bash script by xbindkeys as "sleep 1;bash /home/scripts/loop.sh" KP_Add How can I bind another key, which can break this bash script? For example, if loop.sh is 1,000 clicks by ...
Googlebot's user avatar
  • 1,919
1 vote
1 answer
2k views

xbindkeys does not bind xdotool key command for a key

I add the xdotool commands to .xbindkeysrc. The commands for mouse work, such as "xdotool mousemove 200 200" q but I keys do not work, such as "xdotool key x" q What can be the reason that the ...
Googlebot's user avatar
  • 1,919
1 vote
1 answer
329 views

xbindkeys not working when native Gnome 3.30.1 windows are focused

this is archlinux speaking, fresh install with Gnome 3.30.1. After having installed xbindkeys and setup a ~/.xbindkeysrc file with: # corresponds to ctrl+Y on my machine, according to `xbindkeys -k` ...
iago-lito's user avatar
  • 2,691
1 vote
1 answer
1k views

mute media key doesn't toggle [closed]

Logitech K270 has media keys: play/pause mute/unmute volume down volume up home mail power calculator I don't know what "home" is supposed to do, whereas "mail" and "calculator" don't do anything ...
Enlico's user avatar
  • 1,503
0 votes
1 answer
79 views

Execute a command if F+J keys are pressed

What would I need to do if I wanted to execute: chromium & by pressing F+J ? Preferred requirements: Globally accessible across Desktop Environment Independent of terminal focus or not Without ...
Danny Z's user avatar
  • 181
9 votes
1 answer
950 views

Using CapsLock as left mouse button; mostly works but fails with a few things

Linux System Info: OS: GNU/Linux x86_64 Kernel: 3.13.0-24-generic Distro: Linux Mint 17 Qiana, Cinnamon 64-bit 2.2.16 [Based On: Ubuntu 14.04.5 LTS, Trusty Tahr] Due to a ...
mattst's user avatar
  • 495
2 votes
1 answer
746 views

How do I get xbindkeys to separate its modifiers from xte's?

When I do such as this in .xbindkeysrc "xte 'keydown Control_L' 'key W' 'keyup Control_L'" Shift + b:9 it performs the action of ctrl+shift+w instead of just the ctrl+w I expected. Any idea how ...
Brōtsyorfuzthrāx's user avatar
0 votes
1 answer
4k views

How to configure a mouse in linux?

I just freshly installed an archlinux and just received my new mouse Mx anywhere 2. As the mouse have more than two buttons and i' wondering how to configure these buttons ? I already checked a bit ...
AznYouth's user avatar
1 vote
0 answers
1k views

XBindkeys and Mouse key's giving keyboard numbers (0-9)

XINPUT ➜ xinput --list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ ...
DmitrySemenov's user avatar
4 votes
0 answers
2k views

Is it possible to bind a key shortcut to another key shortcut using Xbindkeys?

What I'm trying to do is to pre-configure a Logitech G602 assigning a specific key combination to each configurable button (G6, G7, G7 etc...) The only way to do that is on Windows (to save the key ...
eera5607's user avatar
  • 153
1 vote
0 answers
99 views

How can I remap Ctrl_Left + button to one action, and Ctrl_Right + button to another?

In my particular example, I want to be able to remap Control_left + n to output LeftArrow, but also to Control_right + n to output Return. How can I do that? I red through xmodmap man, so as xbinkeys, ...
sandric's user avatar
  • 181
1 vote
1 answer
5k views

Mapping mouse events to key presses using xbindkeys

I want to map various mouse actions to key presses using xbindkeys. All my attempts to do this in my .xbindkeysrc file have failed. Attempts have been made using xte and xdotool. Below is a summary of ...
mattst's user avatar
  • 495
3 votes
1 answer
2k views

detecting held keys with xbindkeys

I am using xbindkeys to bind Alt+left and Alt+right to chvt in order to cycle through virtual terminals, as described here. I modified the arithmetic to be modular with respect to the number of ...
user001's user avatar
  • 3,638
1 vote
1 answer
394 views

invoking password-less sudo via xbindkeys

I tried to set up key bindings for changing the virtual terminal (VT) in X, as described in this post. Typing sudo chvt $(($XDG_VTNR-1)) into a terminal emulator appropriately changes the VT. However, ...
user001's user avatar
  • 3,638
4 votes
1 answer
1k views

xbindkeys (xvkbd): stuck CTRL with Debian Stretch

I am using xbindkeys with xvkbd to add some magic to additional buttons on my mouse which I can press with my thumb. For this, I have xbindkeys in my ~/.xsessionrc and the following lines in ~/....
C-Otto's user avatar
  • 365
2 votes
1 answer
741 views

xbindkeys on one keyboard?

I have the current setup: One PS2 Keyboard One USB Keyboard Then I use this: xinput --create-master SecondKeyboard xinput --reattach "Keyboard Id" "Master Id" to separate them. I thought I could ...
hiperbolt's user avatar
5 votes
1 answer
3k views

Control+Shift + Mouse Wheel with xbindkeys shortcuts propagate

My .xbindkeysrc file includes: "amixer sset -q 'Master' 10%+" control + shift + b:4 "amixer sset -q 'Master' 10%-" control + shift + b:5 Which allows me to control sound ...
Udi's user avatar
  • 173
1 vote
1 answer
1k views

BadAccess on X_GrabKeys when using xbindkeys

I wrote two custom scripts to brighten/dim my screen and want to bind them to my F9 and F10 keys. I put them into /opt/bin and used sudo chown root:root script and sudo chmod 755 script on both and ...
Fynn's user avatar
  • 178
4 votes
2 answers
27k views

Execute script from i3 config

Question: I'm using i3-wm and I have Mod3 working as a hotkey. I have the following in ./config/i3/config: #This command works bindsym Mod3+f exec "firefox" #This doesn't work nor do my other ...
Philip Kirkbride's user avatar
1 vote
1 answer
694 views

Keycode for volume buttons

I'm configuring buttons on my mouse I want to set volume buttons but I don't know the keycode fo volume buttons. I used xbindkeys but didn't work.
user avatar
1 vote
1 answer
2k views

xbindkeys map Left + Right mouse button to Middle mouse click

I have managed to install xbindkeys on my lubuntu 16.04 box, which I think is the correct tool for me to use to map a simultaneous left and right mouse button click to emulate a middle mouse click. I ...
user3728501's user avatar
0 votes
1 answer
896 views

Binding keys in xbindkeysrc to type a command

I am trying to bind Alt+Up to type cd .. command using Xbindkeys. Here is what I've tried, among other things: "sleep 1 && xdotool type cd .. --delay 15 && xdotool key Return" Alt+Up ...
syntagma's user avatar
  • 12.2k
2 votes
1 answer
831 views

xbindkeys/xkb map ctrl shortcut

I have installed colemakwide(xkb) and would like to keep shortcut like ctrl+s etc. The goal is that all ctrl shortcut behave like QWERTY which I did in windows/klc by have the original vk for the keys....
johndue's user avatar
  • 41