Questions tagged [xdotool]

xdotool is a command-line tool to automate GUI tasks such as window manipulation. It can simulate key presses and mouse clicks.

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

how to setup XDOTOOL to automate pressing spacebar

I would like to set up xdotool to auto press spacebar twice every 5 hours for 1000 times. What is the command I must enter in terminal/command line? repeat-delay? Can it be done in a single command to ...
1
vote
0answers
18 views

What is the string for Menu key in X keysyms?

I'm trying to simulate Menu key press using xdotool but I'm unable to find the proper string for the key. There is a list of X keysyms in here but Menu (or Application) key is not in the list. I'm ...
0
votes
0answers
38 views

Is there any way of making xdotool type more reliable inside a virtual machine?

I use some shortcuts where I call a list of useful commands with zenity and then I can make it type long commands I wouldn't memorize by heard on the terminal... When I'm using Ubuntu as the main ...
2
votes
2answers
310 views

How to interact with zenity window and type some text inside it?

I have python code : import subprocess subprocess.call(['sh', './zenity.sh']) and zenity.sh file which is #!/usr/bin/python zenity --forms --title="Question" \ --add-entry="...
0
votes
0answers
13 views

Timestamp hotkey won't work

Problem My custom hotkey to insert a timestamp does nothing. Details I'm using xdotool for the command. My Ubuntu version is 16.04 LTS. The timestamp I want to produce is YearMonthDayHourMinuteSecond ...
1
vote
1answer
66 views

xdotool Does Not Work With Gnome Keyboard Shortcuts

I created a custom keyboard shortcut, <ctrl> + <alt> + <shift> + T that would call the command xdotool key --clearmodifiers ctrl+F10 e; however, it does not work. I know that the ...
0
votes
1answer
111 views

Executing a .py on the startup to trigger a GPIO button

I am quite a n00b, and this task is not easy as I thought at a first glance. I am on a raspberryPi4 with Raspberry Pi OS Desktop with recommended software installed (really similar to every ubuntu, ...
0
votes
0answers
76 views

Can I extract the “copy all as CURL” data from command line?

I need to extract some data from a webpage on a regular basis, and simulating the login process with curl is not going well, however I can do it simply with xdotool, then I just need to use chrome's ...
0
votes
0answers
28 views

Is there an way to rotate a specific window from terminal?

I am using cava music player.So since cava by default appears horizontally , i wanted to change the orientation how cava appears to vertical or tilt the window so that it appears vertical.Is there any ...
2
votes
1answer
100 views

Xdotool to move terminal window to new Workspace / Desktop

I'm looking for a way to move a terminal window running the following command. The terminal-window should be sent to workspace 2 after 30 seconds. The following code didn't work: sleep 30 && ...
0
votes
0answers
77 views

Shortcut key for turn around movement (360) on arrow keys

I'm playing Legend of Zelda - Ocarina of Time on Mupen64plus v2.5.0 with M64Py v0.2.5 as frontend. There's this command [/\]+[<]+[\/]+[>]+[B button] and I'd like to reproduce this turn around ...
2
votes
0answers
128 views

xdotool not found while executing script from Java application

I'm trying to execute the sh script from Java application using ProcessBuilder. The script checks for the browser file-upload window and then select it and then provide new image and submit. The file ...
0
votes
0answers
16 views

web based remote control - send keystrokes to X Window

I've switched from an apple TV to an HTPC with Linux - I love it except for lack of remote control. I don't want a bluetooth keyboard, I'd rather have a simple web page to send commands to my browser (...
0
votes
1answer
32 views

Add duplicate shortcut key issue

I want to add a duplicate shortcut key for "Home" and for this I have tried different commands but none of them are working. I want that my custom key should move cursor to the start like ...
0
votes
1answer
82 views

key map: combined keys to combined keys

In short, I want to map Ctrl+H/L to Ctrl+Left/Right without autokey, and xbindkeys+xdotool/xvkbd does not work. Details are as follows: I am now using autokey to achieve the mapping, it works very ...
0
votes
0answers
49 views

Help with XDOTOOL as autokey

Im using Lubuntu Desktop and need to set xdotool to autopress the right arrow key every 3 hours for say 30 days. Please post the code that I must enter in command line to make this happen. I will copy ...
1
vote
1answer
449 views

Four finger gesture in Fusuma/xdotool to change tab in Chrome?

I'm trying to use Fusuma/Xdotool to do a 4 finger swipe left/right to change tab in Chrome (i.e. to trigger alt+tab and alt+shift+tab. However, it doesn't seem to work. Other 3 and 4 finger gestures ...
2
votes
3answers
2k views

Fusuma not working on Ubuntu 18.04

I have Ubuntu 18.04 on Dell Vostro 15 - 3546. uname -api Linux vaishnavi-laptop 4.15.0-117-generic #118-Ubuntu SMP Fri Sep 4 20:02:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux I followed this post to ...
0
votes
0answers
155 views

xdotool - repeat keypresses for gaming

So far I've successfully managed to remap mouse forward and back keys to keypresses that coincide with keybinds that i use for World of Warcraft. What I'm trying to accomplish is having these buttons ...
0
votes
0answers
78 views

Wrong window geometry with xdotool

I am trying to create a script which will use the current geometry information of a window (top, left, width and height). I am trying to do that using xdotool, but it is reporting wrong geometry ...
1
vote
0answers
29 views

Repositioning windows working well, but not gnome-terminal

I have set up a few keyboard shortcuts to reposition windows to the corners of the screen, using xdotool. For example, to move a window top-left I use xdotool getactivewindow windowmove 0 0 Bottom and ...
0
votes
1answer
326 views

How to click+hold+move with xdotool?

I've digged on StackExchange and on the YouTube but everywhere only how to clicks and moves. My question is how to click+hold e.g. some desktop icon and move it to different location with xdotool or ...
1
vote
0answers
130 views

xdotool how to multiple mouse clicks

i've tried to do a multime mouse moves with shift and click but only the first click happens and i think shift wont xdotool search --class appname \ keydown shift mousemove --window %1 875 ...
0
votes
1answer
158 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-...
1
vote
2answers
1k views

xdotool errors over ssh on Ubuntu 20.04 LTS

I am trying to use xdotool over ssh on Ubuntu 20.04 LTS. It works perfectly from within a terminal window when logged in locally, but over ssh it displays the following error from using any command: $...
0
votes
1answer
730 views

Xdotool - tab key

i just found out xdotool so sorry if i ask basic questions but i can't find the answer. How can I simulate the tab key? On a raspberry, I start chromium in kiosk mode on an application that requires ...
3
votes
1answer
1k views

xdotool keyboard automation

I'm new to coding in the linux operating system. I had autohotkey on my windows system and I'm trying to figure out the best way to migrate this to Linux. I'm looking to press one set of keys but ...
2
votes
1answer
189 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 ...
0
votes
0answers
182 views

Is there a way to Restore Window from maximized, if not where is the code for the window button that does this?

This is not a duplicate of: Command for restoring minimized windows. (The answer is incorrect on that question and I don't know how to contact the mods to have it unmarked as accepted. I did find this ...
0
votes
1answer
165 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 ...
0
votes
0answers
71 views

xdotool send request in Postman

I am trying to "Send Request" in Postman active tab from terminal with xdotool. In Postman, we can use ctrl+enter key combination to "Send Request". So I tried: xdotool search --onlyvisible --class ...
3
votes
1answer
381 views

Keyboard shortcut to move to next window

I have a question much like this one: keyboard shortcut to switch to next window I'm looking for a shortcut that allows me to cycle through the windows that are currently open. The reason why Alt+...
0
votes
0answers
79 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. ...
1
vote
2answers
163 views

how to register a shortcut key to type a diacritic in icewm?

I am trying to setup shortcut keys to type common diacritics. I am able to have xdotool type the diacritic in a terminal or from the icewm command bar (or even from gmrun): xdotool key Aacute But ...
4
votes
1answer
2k views

xdotool: moving window “above” 0 0

As per the title. When I do xdotool getactivewindow windowmove 0 0 windowsize 1200 $height_first_monitor xdotool move the window. But when i do xdotool getactivewindow windowmove -40 0 windowsize ...
0
votes
1answer
169 views

xdotool Desktop issue

I am very new to this, so I hope not to offend. I am trying to create Desktop.desktop icons for my HTPC (Home theatre PC). Each icon, once pressed should open the URL and maximise the screen. My code ...
1
vote
0answers
801 views

xdotool send mouse move action to background window?

I've been using xdotool click and xdotool key with --window $win1 as argument to control a window that's in the background. How can I perform a click on a specific button in the background window? ...
6
votes
1answer
1k views

Setting terminal window's title: wmctrl versus xdotool

Edit: I am not looking for other ways or better ways to change a window's title or to add titles to tabs in terminals. The answers in the proposed duplicate do not in any way come close to addressing ...
4
votes
0answers
295 views

Why is there a delay when typing certain characters with xdotool in 18.04?

Using xdotool type or xdotool key with certain characters makes Gnome Shell lock up. For example typing a single slash with xdotool type / or xdotool key slash takes a second or two, but for something ...
1
vote
1answer
622 views

Is it possible to identify windows using regular expressions in xdotool?

OS: Ubuntu 18.04 Say I have the following five open windows with mozilla in their title: $ wmctrl -lx 0x03e00018 0 Navigator.Firefox kububb Ubuntu Manpage: xdotool - command-line X11 automation ...
4
votes
1answer
1k views

xdotool how to select desktop send F5 and return?

It sounds simple; xdotool selects desktop, simulates F5 key press and returns focus to calling window / program. After googling though it doesn't sound simple anymore. I need to do this from bash / ...
0
votes
1answer
155 views

xdotool export bad variable name

I have a probably very simple problem, but it's taking a lot of time and I can't seem to find a good solution. I'm using fusuma on my laptop to use gestures on my touchpad and for that I want xdotool ...
12
votes
1answer
2k views

How to determine if window is maximised or minimised from bash script

I have a bash script that moves my windows from the left screen to right screen in dual-screen setup. Currently the way it works is cycling through the window ids that are given by xdotool search --...
1
vote
1answer
1k views

How to make xdotool auto-click repeatedly?

How to make xdotool auto-click repeatedly where I place the cursor? I need the auto-click to start when I press the left button of the mouse + a key, for example AltGr. And to stop when I leave the ...
2
votes
1answer
2k views

wmctrl && xdotool as keyboard shortcut [duplicate]

In my workflow I always have tab 1-3 of chrome as specific pages that never change. I want to make a keyboard shortcut that will navigate to the second tab with Super+Shift+S. If I execute the ...
2
votes
0answers
249 views

xdotool getwindowfocus windowclose

What's the difference between xdotool getwindowfocus windowclose and the command executed by Alt+F4? Firefox complains when being closed by the former method but doesn't complain when using Alt+F4, ...
0
votes
0answers
135 views

Why are the characters that I typed missing or out of order?

Sometimes when I use LUbuntu 18.04 to type my questions here, the editor echos what I type very slowly. I always believe it is because of memory running out (e.g. too many opened webpages), but ...
4
votes
1answer
1k views

Why do `xwininfo` and `xdotool` give different window ids for the same window?

In a tab of a terminal emulator (lxterminal) on Lubuntu 18.04, I try to find out its window id by clicking the same place (where the shell is shown) inside the tab, either by xwininfo $ xwininfo -...
1
vote
1answer
1k views

“import: unable to read X window image: Resource temporarily unavailable”

On Lubuntu 18.04, I am trying to take a screenshot of the current focused window. I am using import from Imagick following https://stackoverflow.com/a/32165476. It fails in a tab of lxterminal $ ...
1
vote
1answer
380 views

What are the differences between `key` and `type` commands of xdotool?

The xdotool manpage says: key: Type a given keystroke. type: Types as if you had typed it. It is beyond my understanding. Could you explain how they differ?