Questions tagged [xbindkeys]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

xbindkeys lower window with windows key + mouse middle button

Please advise on how to lower a window with windows key + middle mouse click. Here's what I tried. $ cat ~/.xbindkeysrc [...] "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut \"...
user avatar
  • 862
0 votes
0 answers
9 views

Configure xbindkeys to SIGINT?

The end goal is to be able to press ALT+c in gnome-terminal and interrupt a running process. I was hoping I could simply reconfigure stty but super key notation for stty implies this is not possible. ...
user avatar
  • 101
0 votes
0 answers
40 views

Where to find the commands that shortcuts execute in KDE?

How to find out which commands are executed by shortcuts set in System Settings->Shortcuts in KDE? For example, I'd like to know the command to show all open windows in System Services->Kwin ...
user avatar
  • 3,410
0 votes
0 answers
21 views

Do command on click/scroll while other mouse button is held down (aka mouse chording)

With AutoHotkey on Windows, I'm used to control sound volume by scrolling while holding down left-button. I'm trying to achieve the same on Linux (Manjaro KDE). I know I can scroll hovering audio icon ...
user avatar
2 votes
0 answers
94 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 : "...
user avatar
  • 4,311
0 votes
0 answers
19 views

Ubuntu 21.10 on HPProbook 430 - Some keys cause brightness to dim

I cloned the hard drive from my previous HP notebook to a news one and upgraded ubuntu to 21.20. Now, everything works, but arrow keys and Win key cause the brightess of my screen to dim - like if i ...
user avatar
1 vote
1 answer
41 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 ...
user avatar
1 vote
0 answers
37 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 -...
user avatar
1 vote
0 answers
438 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
274 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 ...
user avatar
  • 147
0 votes
1 answer
633 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 (...
user avatar
1 vote
0 answers
170 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@...
user avatar
  • 745
2 votes
1 answer
261 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. ...
user avatar
  • 984
1 vote
0 answers
164 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.
user avatar
1 vote
0 answers
100 views

Disable key combination in X11

I am trying to disable the key combination Left+Right and Up+Down. To achieve this, I tried binding the keys in the configuration file of my window manager but it did not work, as it does not allow to ...
user avatar
  • 121
1 vote
1 answer
334 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.
user avatar
1 vote
0 answers
47 views

Neutralizing a combination of two keys on the keyboard in X11

I'm trying to disable the key combinations of Up + Down and Left + Right. I tried to use the xmodmap utility, but it does not seem to support key combinations other than the ones using metakeys. I ...
user avatar
  • 121
4 votes
2 answers
3k 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: ~...
user avatar
  • 181
1 vote
0 answers
495 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 ...
user avatar
  • 111
3 votes
1 answer
375 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.
user avatar
0 votes
1 answer
237 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 ...
user avatar
  • 1,663
1 vote
1 answer
1k 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 ...
user avatar
  • 1,663
1 vote
1 answer
271 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` ...
user avatar
  • 2,271
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 ...
user avatar
  • 1,012
0 votes
1 answer
67 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 ...
user avatar
  • 181
8 votes
1 answer
738 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 ...
user avatar
  • 475
2 votes
1 answer
617 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 ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
1 vote
0 answers
943 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)] ⎜ ↳ ...
user avatar
3 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 ...
user avatar
  • 143
1 vote
0 answers
82 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, ...
user avatar
  • 181
1 vote
1 answer
4k 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 ...
user avatar
  • 475
2 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 ...
user avatar
  • 3,530
1 vote
1 answer
309 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, ...
user avatar
  • 3,530
3 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 ~/....
user avatar
  • 345
2 votes
1 answer
593 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 ...
user avatar
5 votes
1 answer
2k 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 ...
user avatar
  • 161
1 vote
1 answer
874 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 ...
user avatar
  • 23
3 votes
2 answers
22k 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 ...
user avatar
1 vote
1 answer
449 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 ...
user avatar
0 votes
1 answer
735 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 ...
user avatar
  • 11.3k
2 votes
1 answer
632 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....
user avatar
  • 41
2 votes
0 answers
193 views

Using xkeybinds on headless node for HUID USB Device I/O

I run Raspberry pi's (rpi) in headless mode running Raspbian - a form of Debian. I would like to use the xev with xkeybinds approach (see Detect if mouse button is pressed, then invoke a script or ...
user avatar
2 votes
2 answers
435 views

Force a specific button release

I've looked at this post, but it's not quite what I was looking for. Command for forcing a pointer ungrab (captured mouse release) I want to fake the "Easy-Shift" functionality of my "Roccat XTD" on ...
user avatar
  • 121
4 votes
1 answer
278 views

xbindkeys Paste Script is Failing to Work

I'm trying to bind control + i to load the contents of file.txt to the clipboard (so that I can use ctrl + v to paste the contents of file.txt into windows like my browser). The following command ...
user avatar
  • 41
4 votes
5 answers
5k views

Adjust volume using mouse multimedia buttons

I know that there are many questions on the internet about setting keyboard/mouse multimedia keys/buttons in Linux, nevertheless my question is more specific. My wireless input devices: Logitech ...
user avatar
  • 1,129
0 votes
1 answer
156 views

Bind C-j to backward-kill-word, says command not found

bind -x '"\C-j": backward-kill-word' says, backward-kill-word: command not found As mikeserv quoted here, i am able to do backward-kill-word using Ctrl-w. However this is the same key i use in ...
user avatar
0 votes
1 answer
243 views

Ctrl-y, yanking x-clipboard contents to terminal adds shell prompt string

Using this link, i wrote custom function to yank text from x-clipboard to shell terminal on pressing C-y. I see two issues here, copy_line_from_x_clipboard () { xsel -o } bind -x '"\C-y": ...
user avatar