Questions tagged [xte]
8 questions
11
votes
2 answers
Keyboard emulation in Wayland
Is there a way to make xdotool or xte or any other alternative to work in Fedora 26?
I'm trying to emulate keypresses (using xbindkeys), e.g. pressing Alt+B would emulate pressing Ctrl+Shift+B. But apparently neither xdotool nor xte work in Wayland…
iLemming
- 533
- 2
- 6
- 14
6
votes
2 answers
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:
~ $ cat .xbindkeysrc
"xte 'keydown Super_L' 'key…
orion3
- 201
- 3
- 7
4
votes
1 answer
detect if key is pressed from script
I would like to detect if a key is being pressed when running a script. I have the following script:
#!/bin/bash
sleep 0.5
xte 'str sometext'
I run this script using a shortcut to paste "sometext" where I'm at in kde. I used a sleep 0.5 here…
Silverrocker
- 1,815
- 1
- 15
- 23
2
votes
1 answer
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 to fix this? Adding + Release to the second line…
Brōtsyorfuzthrāx
- 297
- 3
- 12
2
votes
1 answer
xte and keyboard mapping
I'm trying to fake xinput events with xte:
xte "str $(echo '')"
But, I get:
WQBC@g;qil
daisy
- 53,527
- 78
- 236
- 383
1
vote
0 answers
xte bash command from xautomation not working on debian
I tried with multiple commands, from
xte 'key a'
to
xte 'keydown Control_L" "key Tab" "keyup Control_L"
for alt-tabbing, or
xte 'mousemove 100 100'
and nothing works; I just get a blank new line in bash.
Fedja Mladenovic
- 47
- 1
- 6
1
vote
1 answer
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 what has been tried - although I'd like to map…
mattst
- 495
- 6
- 15
0
votes
1 answer
How to close epiphany through a script with cron?
I have been making scripts to open and close a specific website with a cronjob on the raspberry Pi. The opening script works perfectly. It is as follows:
#!/bin/bash
export DISPLAY=:0 && epiphany-browser http://mywebsite
sleep 30
xte "key F11"…
angelfmf
- 23
- 5