Questions tagged [xte]

Questions regarding xte - and fake input using the XTest extension

Filter by
Sorted by
Tagged with
17 votes
5 answers
8k 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. ...
0 votes
2 answers
915 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. ...
20 votes
6 answers
17k views

Why do these xte commands work in terminal, but not when bound with xbindkeys?

This xte command, when I run it in a terminal, triggers Expo mode: xte 'keydown Super_L' 'key S' 'keyup Super_L' However, when I put this in my .xbindkeysrc file: "xte 'keydown Super_L' 'key S' '...
1 vote
1 answer
654 views

How to mimic Menu key using xte?

My laptop is woefully missing the Menu key, but I have some extra buttons on my mouse so I hoped to map one of them to the missing Menu key - as explained in several answers on AskUbuntu, for example ...
45 votes
5 answers
69k views

How do I automatically remap buttons on my mouse at startup?

I struggled with this over the weekend, and need to remap my mouse buttons.
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 ...
9 votes
5 answers
6k views

Is there a way to send the switch windows signal without "Alt-Tab"?

I'm trying to bind a switch window button on my mouse into Ubuntu. Currently I'm trying to do it with xbindkeys and xte, but do this in .xbindkeysrc only outputs a Tab and doesn't switch windows. ...
0 votes
0 answers
579 views

Scroll through opened windows & apps with mouse button and scroll wheel

I have my Logitech G502 mouse with many extra buttons so I wish to be able to hold down a mouse button, use scroll wheel to go through opened windows, release mouse button to select it. The close ...
3 votes
2 answers
7k views

How to emulate Fn (function key) keypress in xte

xte is part of the xautomation package. After hours of man page reading and looking for documentation or working examples, I still cannot get xte to emulate a Fn-F7 keypress. xte 'keydown Meta_L' '...
2 votes
1 answer
701 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:...
2 votes
0 answers
307 views

binding left + right mouse button click to different action from middle button?

I want to bind a different action (for example, using xbindkeys) to the simultaneous clicking of my left and right mouse buttons than I get by clicking the middle button. Is this possible? I have ...
8 votes
3 answers
29k views

Close active window from terminal

Do you know how to do it? I know how to do it from my keyboard (Alt+F4), I know how to do it with my mouse (click that X), and I also know that kill X should kill the process with the id X (and ...
1 vote
0 answers
286 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 ...
0 votes
1 answer
980 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,...
7 votes
1 answer
2k 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 ...
8 votes
1 answer
3k views

xte called from xbindkeys is not working

I am trying to setup xbindkeys in Kubuntu, since I got a new mouse with some useless buttons. I was trying to bind the F5 key to the windows-logo button on my mouse, which I identified as c:134. ...
1 vote
1 answer
1k views

Remap menu key to delta (Δ)?

I'm using Xubuntu 14.04. My keyboard is a Belgian AZERTY. I never use my menu key, and I use the delta sign a lot. I'm not willing to switch keyboard layouts to Greek, as the delta is the only thing I ...
0 votes
1 answer
327 views

How do I use xte to bind next/previous to my mouse?

I know how to use xbindkeys, but I don't know what is the xte command for previous/next, when I want to bind my extra mouse buttons to navigate nautilus/web browser to go 1 step back or 1 step forward....