Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xbindkeys]

Questions about xbindkeys, a program that allows user to launch shell commands with keyboard or mouse under X Window.

0
votes
0answers
19 views

Remap mouse movement to mouse scrolling using xbindkeys

I'd like to remap the mouse movement (left/right/up/down) to scrolling commands (left/right/up/down) similar to this chrome extension. My idea is to remap the mouse movement when pressing the page-...
0
votes
0answers
11 views

Button release does not work with xbindkeys

Following this tutorial, I'd like to map the page-forward button of the mouse (i.e. b:9) to Shift_L. However, using the tools xte and xbinkeys the button-down works, but the button-release does not. ...
1
vote
1answer
46 views

Change global environment variable using a script that is started using xbindkeys?

TLDR: I have a simple shell script that flips an environment variable from value foo to bar, or the other way round, depending on its current value. I use F12 to trigger this script, and I know that ...
0
votes
0answers
45 views

How do I map extra mouse buttons to Page-up and Page-down?

I've been trying the whole day. I've put on ~/.xbindkeysrc "xvkbd -xsendevent -text "\[Prior]"" b:9 "xvkbd -xsendevent -text "\[Next]"" b:8 After rebooting, when I press the mouse buttons "8" and "...
3
votes
1answer
200 views

How can I swap my backspace and backslash?

I want it like this: BackSpace -> backslash Shift + BackSpace -> bar backslash -> BackSpace I tried to use xbindkeys and xdotool, but I couldn't get it to work. This is what I had in my ....
0
votes
1answer
26 views

Can key presses be throttled on Linux?

I've got a keyboard (razor black widow stealth) that is malfunctioning in such a way that it periodically sends duplicate key presses for various keys (h and n) so far. I'm looking for ways to delay ...
0
votes
0answers
50 views

xbindkeys and xdotool does not work for Enter or Return

I try to bind some keys to other keys via xdotool commands in .xbindkeysrc. Everything works fine but I cannot simulate Enter by any key. Neither of the following commands work. "xdotool key KP_Enter"...
0
votes
0answers
68 views

Map key to a script in Ubuntu 18.04.1

I'm on Ubuntu 18.04.1 Bionic Beaver using an HP Pavilion laptop. My laptop has a key for toggling airplane mode. Using xev, I found out that it has keycode 255. I've saved the following code at /bin/...
1
vote
0answers
156 views

Xbindkeys in 18.04, mouse actions not done on first button click

My problem is related to button mappings on my mouse, via Xbindkeys, that are not working in a consistent manner. The short version is that using a mapped button action is doing "something else" in ...
0
votes
0answers
98 views

xbindkeys + xmacroplay are terribly slow on Ubuntu 18.04 Bionic

I've been using a combination of xbindkeys and xmacroplay to set up a new keyboard layer activated with the Windows key. Here's a sample: #Up "echo 'KeyStrRelease Super_L KeyStrRelease i KeyStr Up ...
1
vote
0answers
26 views

Issue with xbindkeys on xubuntu

This code on xbindkeysrc file works fine: "firefox" m:0x18 + c:112 But this one, doesn't: "xte 'keydown Control_L' 'key Tab' 'keyup Control_L' " m:0x18 + c:112 Apparently, commands that use xte or ...
0
votes
0answers
39 views

How can I store variables/state in xbindkeys?

I want to be able to store information between button presses in xbindkeys. For example I may want a toggle, so the first time I press a button and it sets a variable to true, then the 2nd time it ...
1
vote
1answer
800 views

Logitech Master MX 2S app specific settings

So I have gone through almost all Master MX 2S questions here on Ask Ubuntu and other sites. I did figure out how to do the xbindkeys for custom actions for some buttons and some synthetic key ...
0
votes
0answers
38 views

How to remap mouse key long-press event to something else?

I followed this for remapping my mouse extra buttons. I am looking for adding long-press actions to the extra buttons while single-click action is also active. I use this functionality on Windows ...
0
votes
1answer
201 views

Assign mouse buttons for Spotify

I recently started using Ubuntu. On my Windows (I use a dualboot), I have an application called Xmouse control (or something along those lines) I use it to assign my mouse buttons to Spotify (skip a ...
0
votes
0answers
93 views

xbindkeys and xte

I want a VR remote to work as a presentation remote. The Page Down key works, but I need to map one of the controller buttons to be Page Up. My xbindkeysrc file havs this role: "xte 'key Prior'" ...
0
votes
0answers
74 views

Change keyboard layout with xmodmap or xbidnkeys

I need to use Numlock to switch between keyboard layouts. Any way to achieve this with Xmodmap or Xbindkeys? I tried setxkbmap -layout but it doesn't seem to provide a "switch between" functionality....
0
votes
0answers
75 views

+Release not working in xbindkeys

I'm currently running Ubuntu 17.10 under VMware. Trying to get my Logitech M560 mouse extra buttons working after a long search in the web I reached this state using xbindkeys: # side button ...
0
votes
0answers
19 views

Changing the '#' key to act as 'Alt' when held

I would like my # key to act like an Alt key when held down (so # + Tab would cycle through windows), but as the # key when pressed once. This is because I have a new keyboard has two #/~ keys (it is ...
1
vote
0answers
86 views

How to execute commands on modifier key press and release?

I'd like to use Ctrl to run a start command (let's say record) on key press. I'd also like to run a stop command on key release. In addition, I want to maintain Ctrl as a modifier (e.g. allow Ctrl+V ...
2
votes
0answers
493 views

Configuring non wacom drawing tablet

I am a linux user and I am a total newbie when it comes to input devices and drivers. I have recently bought xp-pen star 06 tablet tablet specifactions the tablet works poorly with evdev. The ...
1
vote
0answers
196 views

How to bind additional mouse buttons to be modifiers (Shift/Control)? [duplicate]

System: Ubuntu MATE 17.04 I use control\shift + [key] keybinds often, and plan to use lot of hotkeys with those modifiers. Because sometimes using grid layout I will need to be pressing buttons like "...
12
votes
6answers
5k views

Logitech MX Master Thumb Button with Ubuntu

Goal I would like to get the Thumb Button on my Logitech MX Master mouse to work under Ubuntu 17.10. Specifically, I want it to serve as a "Meta" key, by which I mean pressing it will show me all the ...
0
votes
1answer
192 views

Xbindkeys doesn't work properly with keys

I've this code in my xbindkeysrc: "firefox" m:0x15 + c:37 m:0x11 + c:50 m:0x10 + c:55 And it works fine! But when I try: "xte 'key S'" m:0x15 + c:37 m:0x11 + c:50 m:0x10 + c:55 It doesn't type ...
0
votes
1answer
454 views

How do I fix xbindkeys keyboard to mouse button, repeating key presses when held?

I have a Logitech MX Revolution mouse that has a XF86Search keyboard key on it. I used xdotool to map it as a middle mouse button inside my xbindkeys file. This mouse click no longer acts like a ...
3
votes
0answers
272 views

Disable Control+Scroll on trackpad with xbindkeys

I have a problem with Ubuntu zooming in/out on Chrome web pages or enlarging/reducing text size in code editors whenever I scroll while holding down Control (it happens a lot when working with hotkeys ...
1
vote
1answer
372 views

xbindkeys doesn't work with XF86audio*, how to configure key mapping correctly?

I want to map my Fn + Left (XF86audioprev) and Fn + Right (XF86audionext) keys to function as the "Home" (Num_Lock + 7) and "End" (Num_Lock + 1) keys. I tried using xbindkeys with xte. At the ...
3
votes
0answers
134 views

Click & drag with keyboard shortcut

The "click down" key on my laptop touchpad requires too much force, making it difficult to click & drag. I would like to solve this by holding down a keyboard shortcut while dragging along the ...
1
vote
1answer
356 views

How to rebind ctrl+shift+q to @ using xbindkeys?

I'm trying to remapp Ctrl+Alt+Q to show an @. I'm using xbindkeys -k and press Ctrl+Alt+Q. Output: "NoCommand" m:0x81 + c:11 Shift+Mod5 + 2 Thus I put the following in ~/.xbindkeysrc: "...
0
votes
0answers
122 views

xdotool output gets intercepted by xbindkeys

I have a broken key on my keyboard, The dot "." to be specific. It behaves very oddly, about 7/10 times the keyboard types a double dot ".." when clicked once. I use xbindkeys to intercept when the ...
1
vote
0answers
106 views

How to bind all functions of 'Shift' button to another one?

I have a keyboard with broken Shift button, but I have some additional buttons like Mail, Home etc. I want to make my Mail button as Shift button (because I have used Windows and software for my ...
1
vote
1answer
227 views

Wheel gestures in ubuntu?

This question is a particular case of this one. Is there any program that can assign the key combination CTRL+TAB to the gesture RIGHT-CLICK+Mouse-wheel-up/down? Explanation: I haven't managed to ...
3
votes
0answers
434 views

Libinput extra mouse button mapping

I have a Logitech M570 mouse connected to my laptop. I originally got the extra side buttons mapped to window overview in Gnome (the 'Super' key) by following instructions here on AskUbuntu to ...
4
votes
3answers
2k views

Can I use complex mouse button combinations with xbindkeys?

I am running Ubuntu 16.04 and have connected Logitech M705 mouse. This mouse has a total of 10 buttons, button 1 being left click, button 2 right click, button 10 "thumb button". I have set up ...
0
votes
1answer
324 views

Broken Fn key - remapping?

The Fn on my laptop broke. Unfortunately it did so before I installed Kubuntu, but I'm pretty sure that I've tried live booting Ubuntu here before and the Fn+F combinations worked. Is it possible to ...
0
votes
1answer
481 views

How can I disable 'focus follows mouse' when the Super key is pressed

...and enable it on keyup event? The problem is, when using the keyboard to move windows across multiple monitors, focus is stolen by the mouse once the focused window I'm moving is moved away from ...
3
votes
0answers
80 views

mousekeys keep restting and skipping

I've just discovered mousekeys and they are a godsend for my rsi problems, but i keep having this annoying problem where occasionally while interacting with some sort of UI they reset the amount that ...
0
votes
1answer
139 views

Ubuntu 14.04.3 64-bit xbindkeys do not recognize mouse button depression

I have installed xbindkeys on Ubuntu 14.04.3 64-bit in order to emulate middle mouse button and my configuration file has the following line: "/usr/bin/xte 'mouseclick 2'" control + b:1 However, ...
0
votes
1answer
317 views

Xbindkeys does not trigger some keys when keyboard layout changes

I use xbindkeys to map some mouse buttons with keys. However, when I change the keyboard layout, xbindkeys does not simulate some assigned keys on the new layout. When I change to the previous layout,...
6
votes
2answers
1k views

Bind Alt+Tab to a Logitech mouse button on Kubuntu

Note: this is not a duplicate of either this or this, as I will make clear. I have a Logitech Proteus Core mouse. Under Windows 10, I have set one of its buttons (the small one labeled "G9" on top of ...
2
votes
0answers
212 views

Bind triple left click to mouse wheel click using xbindkeysrc?

I want my middle mouse button, button 2, to create a triple left click event (highlight a line). When I use xbindkeys -n -v it registers the triple click event but it doesn't appear to work/register ...
0
votes
1answer
165 views

Setting action with xbindkeys: sh: 1: Bad substitution and wrong clipboard area

I'm trying to copy the song info (artist - title) to the clipboard in xbindkeys using shell command and the banshee --query-title and --query-artist commands. first I open the xbindkeys with $ ...
3
votes
0answers
139 views

button bindings only for mouse - not touchpad

Is there a way to setup key bindings that will work only for mouse and not for the touchpad? I have tried with xbindkeys but it works for both which is annoying. My .xbindkeysrc looks like the ...
2
votes
1answer
369 views

xbindkey delete suggestion makes the shift key constantly pressed

I have xubuntu on an Acer c720. This means that there is no delete key on the keyboard. After googling for a while i find that everyone has solved this by adding "xdotool keyup shift+BackSpace; ...
3
votes
1answer
1k views

Xdotool does not work with xbindkeys

I want to use xdotool with xbindkeys but it does not work. This is what I tried first: "xdotool type a" m:0x1 + c:50 Shift + Shift_L this is not a duplicate as I have tried the solutions ...
1
vote
0answers
133 views

Lubuntu xbindkeys -k won't detect super + space but detects control + super + space

I'm trying to setup a dmenu shortcut using xbindkeys with the super + space keys. When using xbindkeys -k, this is what I get: control + super + space "(Scheme function)" m:0x44 + c:65 Control+Mod4 +...
13
votes
3answers
4k views

How to map modifiers (e.g. CTRL) to mouse thumb buttons using xbindkeys

This question has already been asked but was never answered properly. After clearance with @Seth I am now asking it again. This will allow me to respond and possibly modify the question a lot easier. ...
1
vote
0answers
484 views

Gaming macros on ubuntu

I've been able to run League of Legends on wine, and now i'm trying to associate macros to my mouse buttons. I've used xbindkeys+xte to simulate keystrokes. For example: # Press mouse button 1, will ...
3
votes
0answers
144 views

xbindkey: press key two times in a row for a different output

I recently discovered xbindkeys and xdotool. I was wondering if there is way to remap a key to a different one if pressed two times in a row? Here's what I'm trying to accomplish: I want to start "...
4
votes
1answer
915 views

'xte mousedown' / '-up' via xbindkeys not working

I would like to bind my (Logitech mouse, thumb button) b:2 to the middle mouse button button 2. I tried "xte 'mouseclick 2'" b:8 which does work in the terminal, but not with xbindkeys. Neither ...