Skip to main content

Questions tagged [xbindkeys]

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

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

How to use xbindkeys & xdotool to bind mouse button?

How can i use right mouse key to paste at default terminal application ? i added to my ~/.xbindkeysrc "xdotool click 3" b:3 But it makes right mouse key to stop showing menu but paste ...
emoxam's user avatar
  • 889
-1 votes
0 answers
20 views

Double RIGHT click action in Nautilus

Since Explorer does not save the last viewed folders, and it doesn't save the last location. I want to make a bind that will go to the file location by double-clicking the right mouse button. I tried ...
Unamelable's user avatar
0 votes
0 answers
77 views

Change mouse button behavior

I have been playing around with xbindkeys and somehow managed to make the primary button copy and middle button paste. When I highlight text, it is added to my clipboard. This behavior doesn't appeal ...
John Carter's user avatar
0 votes
0 answers
51 views

How to keymap arrowkeys to alt + [ijkl] in Ubuntu 22.04?

I have already tried xbindkeys + xvkbd "xvkbd -xsendevent -text '\[Left]'"\ m:0x8 + c:44\ alt + j "xvkbd -xsendevent -text '\[Down]'"\ m:0x8 + c:45\ alt + k "xvkbd -...
White's user avatar
  • 1
0 votes
0 answers
166 views

xdotool in a shell script doesn't work properly with an xbindkeys

I'm fighting with this quite a long time. I have a very simple script: #!/bin/bash while true; do if [ ! -z "$(/usr/bin/xinput --query-state 17 | grep -o 'button\[12\]=down')" ]; then ...
tomatoman29's user avatar
0 votes
0 answers
99 views

Program mouse's drag and drop to a keyboard key

I'm trying to program with xbindkeys and xdotool one of my keyboard keys (key 1, the one that types 1 and !) to act like a mouse's left button, so that I can click, drag and drop, and so on. The ...
Keiji's user avatar
  • 1
0 votes
1 answer
193 views

How to remap (only) mouse keys? (special case)

I've remapped some mouse keys to help me navigate in firefox, later I'll extend the use to other applications. In particular, I remapped button 4 of the mouse so that the active web page scrolls up at ...
CaneRandagio's user avatar
0 votes
0 answers
161 views

Using xbindkeys to assign suspend to Pause/Break key

Xbindkeys sure has a person doing some "fancy dancing" trying to get a command assigned to a key. Using material from here, https://wiki.archlinux.org/title/Xbindkeys#GUI_method This is in ....
fixit7's user avatar
  • 3,147
0 votes
2 answers
134 views

New keyboard has no sleep button

I got a new keyboard(Lenovo) but it has no sleep key which I use very frequently. I have a script to do the suspension. Can I take a rarely used key, like the Pause/Break key and cause it's pressing ...
fixit7's user avatar
  • 3,147
2 votes
2 answers
2k views

Ubuntu 20.04 custom hotkeys to change keyboard layout

I'm trying to change Ubuntu 20.04's behavior in the following way: I want Left Alt to switch keyboard layout to English and Right Alt to switch it to Russian. I also want to keep all my Alt+smth ...
Artem Shalagin's user avatar
3 votes
1 answer
1k views

Keyboard remap [Alt_L] + {ijkl} as arrow {Up, Left, Down, Right}

I want to use 'ijkl' together with alt to act like arrow keys. i.e. Alt+i = Up , Alt+K = Down etc. I have tried xmodmap following this answer. The answer says that Alt modified key is the third column ...
adal's user avatar
  • 31
2 votes
1 answer
520 views

Bind "workspace down" and "workspace up" to mouse buttons using Xbindkeys on Ubuntu 20.04

The standard shortcut to switch workspaces are Ctrl+Alt+Pgdown or Ctrl+Alt+Pgup and I want to bind these commands to buttons in my mouse. Therefore, I can achieve what I want using xbindkeys and ...
fmakoto's user avatar
  • 23
2 votes
2 answers
1k views

xte stopped working after upgrading to ubuntu 21.04

I use xbindkeys to copy and paste using mouse 8 and mouse 9 buttons. It worked with ubuntu 20.10 but since I upgraded to 21.04, it stopped working in some applications. The issue seems to be coming ...
nicolast's user avatar
  • 123
1 vote
2 answers
420 views

xbindkeys double counting keypresses (not distinguishing between press and release)

I have a Logitech g502 Proteus mouse, and want to use the "Back" and "Forward" mouse buttons (typically used with browser). I verified with xev that the mouse button presses are ...
traycerb's user avatar
8 votes
1 answer
6k views

How to access extra mouse buttons on Wayland?

Since unfortunately Gnome does not offer any option to configure additional mouse buttons I used to achieve this simple goal by writing a tedious configuration file for xbindkeys. What I wanted was ...
user5950's user avatar
  • 6,246
0 votes
0 answers
66 views

Xbindkeys updates only after reboot

I am making a desktop application by using xbindkeys underhood, so I want to xbindkeys hotkeys be updated without reboot of computer. Now I should run xbindkeys -p and do reboot to update it and work ...
Ерлан Темир's user avatar
0 votes
1 answer
281 views

xbindkeys works only on verbose mode, ubuntu 20.04

My xbindkeys works only on -verbose mode, without this mode, it doesn't react to my hotkeys. xbindkeys -v displayName = :0 rc file = /home/yerlan/.xbindkeysrc rc guile file = /home/yerlan/.xbindkeysrc....
Ерлан Темир's user avatar
0 votes
1 answer
615 views

xbindkeys can't capture extra mouse buttons on KDE 5

I am trying to use my extra mouse buttons for something useful. In Xfce it worked flawlessly, but in KDE it seems xbindkeys can't capture the mouse buttons. xbindkeys -n shows a warning there is a ...
Luis Henriques's user avatar
0 votes
0 answers
1k views

How configure a mouse key to work as a super key

The super key (windows key) is very useful, it displays all opened windows and It makes easy and fast to move between them. I want to configure one of mouse's buttons to work as a super, but it doesn'...
Diego's user avatar
  • 1
0 votes
2 answers
691 views

xbindkeys + xvkbd works, but xbindkeys + xdotool fails

Here is the relevant part of my .xbindkeysrc file. The first commented line gives you idea of what I am trying to achieve. # System-wide equivalence of Shift-Del, Ctrl-Ins, Shift-Ins and Ctrl-X, Ctrl-...
S. N.'s user avatar
  • 335
2 votes
1 answer
441 views

How to temporarily disable aa key on the keyboard after pressing it?

I spilled beer in my mechanical keyboard and ever since it tends to repeat the "a" key whenever I press it (yes, I've cleaned it several times, used aalcohol, etc.). I tried to mitigate this issue ...
Jdclark's user avatar
  • 73
0 votes
1 answer
2k views

Emulating the left mouse click with the help of xdotool and xbindkeys

I want to emulate the left mouse click with the help of xdotool and xbindkeys and have the following: "xdotool 1" Alt+w in ~/.xbindkeysrc; the problem is that Alt also gets clicked in the ...
Fritjof Larsson's user avatar
0 votes
1 answer
566 views

How to rebind the "fn" key to mouse button 4

I want to rebind my FN key to my mouse button, but I'm having some issues. Currently using xbindkeys but have no idea how to configure it to what I need to do. Using 18.04. Thank you in advance!
Apeirologue's user avatar
1 vote
0 answers
183 views

More than one letter in an xbindkeys binding

Is there a way to configure a shortcut in xbindkeys that utilises multiple letters? e.g., I'd like to have alt + a + e bound to a command I've already tried using xbindskeys -k but no luck :( Is it ...
Nick Bull's user avatar
  • 182
0 votes
0 answers
122 views

Remap Super+Left to the Home button

I want to remap Super+Left key combination to the Home button. I tried tools like xdotools, xte and xbindkeys, but for some weird reason it worked only on Firefox, and not on any other window. ...
someone235's user avatar
2 votes
1 answer
622 views

How do I make xbindkeys not stop the original function of my key?

I don't remember where or how I got this script, but it works perfectly... Apart from making me unable to use my middle mouse button. ;; This configuration is guile based. ;; http://www.gnu.org/...
Harmonised7's user avatar
2 votes
2 answers
1k views

Xbindkeys launches correctly application for the first time only

When I put the following line in ~/.xbindkeysrc GNOME correctly launches application vlc. "vlc" XF86Calculator The problem is that I'd like to run a shell script. When I put the following in ~/....
menteith's user avatar
  • 271
8 votes
2 answers
7k views

How do you reload XBindkeys in Ubuntu

I have tried a number of options to reload xbindkeys after changing the configuration file (my configuration file is located at ~/.xbindkeysrc). Nothing seems to work. The configuration file should ...
Snap Shot's user avatar
  • 531
2 votes
1 answer
718 views

problem binding arrow keys with xbindkeys

I'm trying to bind ctrl+win+p to act as an "UP" arrow key. I'm going to use xbindkeys so first of all I start xbindkeys -k to see the code for this combination. It gives me such an output: set@set001:...
SET's user avatar
  • 195
0 votes
0 answers
151 views

Pop up keeps appearing in Ubuntu 18.04.2 LTS

I have bound my mouse buttons to certain actions (changing music tracks) using xbindkeys. This pop up appears only when vlc is not running and I click one of the mouse buttons.
user avatar
1 vote
2 answers
1k views

How to set xbindkey separately for Trackpoint, Trackpad and Mouse?

I have configured my Logitech MX-Revolution Mouse via xbindkeys on kUbuntu 18.04. I set up the extrabuttons on the scrollwheel (left/right swipe) to play the next/previous song. My problem is, that ...
Welat's user avatar
  • 13
1 vote
1 answer
1k views

Problem with remapping graphics tablet buttons to keyboard shortcuts

I have a cheap xp-pen tablet with 8 extra buttons. I'd like to map them to keyboard shortcuts, such as Ctrl-Z, to use with Krita/Gimp/etc, but vendor's utility more looks as a proof-of-concept. I ...
sleeply4cat's user avatar
1 vote
1 answer
152 views

How to use xbindkeys to activate a minimized window?

In Autokey I used this script to be run on pressing hotkeys [Alt+X] and Activating window named 'Add' window.activate('Add', switchDesktop=False, matchClass=False) How is it possible to do it in ...
UbuntuLover's user avatar
  • 2,739
3 votes
1 answer
2k views

Binding Mouse Button to Another Mouse Button with xbindkeys - XEV bugs out

I have a Logitech M720 Mouse that I'm hoping to bind the side button (usually page forward) to the middle click button - something that I've done on my Windows with Logitech Options. After ...
Woon Wu Chyi's user avatar
0 votes
2 answers
960 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. ...
Tik0's user avatar
  • 327
1 vote
1 answer
236 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 ...
Torben Gundtofte-Bruun's user avatar
3 votes
1 answer
3k 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 ....
James Wang's user avatar
0 votes
1 answer
230 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 ...
Anthony Naddeo's user avatar
4 votes
0 answers
2k 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"...
Googlebot's user avatar
  • 1,807
0 votes
0 answers
312 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/...
MathIsNice1729's user avatar
2 votes
0 answers
390 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 ...
dsideriu's user avatar
1 vote
0 answers
491 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 ...
lolmaus - Andrey Mikhaylov's user avatar
1 vote
0 answers
138 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 ...
David Spira's user avatar
1 vote
1 answer
2k 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 ...
Nirmik's user avatar
  • 7,898
0 votes
1 answer
2k 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 ...
Deducted08's user avatar
0 votes
0 answers
443 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....
Shayan's user avatar
  • 1,531
1 vote
0 answers
822 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 ...
Oblitzitate's user avatar
5 votes
0 answers
2k 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 ...
Arsen's user avatar
  • 51
1 vote
0 answers
530 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 "...
Esuil's user avatar
  • 371
29 votes
11 answers
35k 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 ...
Yasha's user avatar
  • 391