Questions tagged [xte]

Questions regarding xte - and fake input using the XTest extension

xte - Generates fake input using the XTest extension

Synopsis

xte [options] commands...

Description

xte is a program that generates fake input using the XTest extension, more reliable than xse.

bib ref : http://linux.die.net/man/1/xte

18 questions
47
votes
5 answers

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.
20
votes
6 answers

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' 'keyup Super_L'" b:11 Nothing happens when I click…
Hubro
  • 1,293
17
votes
5 answers

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. The original question can be found here: Map Ctrl…
9
votes
5 answers

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. Current .xbindkeysrc code: "'xte' 'keydown Alt_L'…
PitaJ
  • 752
8
votes
1 answer

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. Unfortunately it does not seem to work. Here is what I…
Palantir
  • 2,052
8
votes
4 answers

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 killall Y should kill the process named Y). But I want…
7
votes
1 answer

'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 does the following trigger any action, which is…
phil294
  • 639
3
votes
2 answers

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' 'key F7' 'keyup Meta_L' I've tried Meta_L, Meta_R,…
komputes
  • 3,303
2
votes
2 answers

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 from xte If I run sleep 4; xte 'key v' in the…
nicolast
  • 123
2
votes
1 answer

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:~$ xbindkeys -k Press combination of keys or/and…
SET
  • 195
2
votes
0 answers

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 disabled middle button emulation using xinput: xinput…
1
vote
0 answers

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 keyboard wich makes it). I have almost read this…
1
vote
1 answer

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 this one. But unfortunately I couldn't figure out…
Guss
  • 3,775
1
vote
1 answer

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 use. I've tried: Xmodmap, but that didn't work…
lyra
  • 417
  • 1
  • 5
  • 13
0
votes
1 answer

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, it works fine. The combinations that stop…
Manuel
  • 988
1
2