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
0 answers
9 views

Incorrect display of windows after sleep mode

After the sleep mode, some windows are always not displayed correctly. This means that they are not visible as if they were minimized, or only the window title is visible. With 2 x "Windows key + ...
user avatar
0 votes
1 answer
29 views

How can I get the pid of a window that's currently opening?

I know we can get the pid of the current window with xdotool with the command: xdotool getactivewindow However, that helps only with current opened windows... I'd like to find a way of getting the ...
user avatar
  • 393
1 vote
1 answer
91 views

How to get current active window in Ubuntu 22.04?

Since Ubuntu 22.04 was released, this question is normal now. I am writing a shell script which needs to get current active window name, so after searching for a tool for it, I decided to use xdotool. ...
user avatar
  • 11
0 votes
0 answers
14 views

Recording screen interaction for UI playback

Before I resort to scripting my own, is there a tool that records screen interactions for playback? I want to record where the mouse got clicked and on which menu, in order to automate a series of ...
user avatar
  • 231
0 votes
0 answers
64 views

xdotool can no longer aquire gnome terminal

I have been using a script to manage gnome-terminal windows using xdotool. I recently upgraded to Ubuntu 21.10 and now my script no longer works. This is the script that no longer works: #Find the ...
user avatar
  • 150
0 votes
1 answer
43 views

Custom keyboard shortcuts keypresses

I'm looking for a solution to map keyboard shortcuts to keypresses in a gnome DE. In scope of this question I'll use the example of mapping meta+2 to F2. It doesn't seem to work with xdotool. E.g., ...
user avatar
  • 111
0 votes
1 answer
89 views

Launch only one chromium instance

I'm running Chromium from snap storage at Ubuntu 20.04 with Openbox and minimal install. How can I run only one instance of Chromium browser by each additional click in panel (lxpanel) or launch ...
user avatar
  • 75
1 vote
1 answer
142 views

How to Snap/Minimize/Maximize Window below cursor?

The default Keyboard Shortcuts in Ubuntu to maximize a window (Super+Up) or snap it to the sides (Super+Left/Right) relates to the current active window. While setting up mouse gestures using logiops, ...
user avatar
  • 24.5k
0 votes
0 answers
31 views

Problem hiding the window on the desktop

How can I lock a window as a desktop so that the windows are not hidden by tapping the desktop with the mouse? Before tapping on the desktop: enter image description here After: enter image ...
user avatar
2 votes
1 answer
413 views

xdotool `windowsize` and `windowmove` don't work in GNOME when the window is full sized

I have some keyboard shortcuts that tile windows around the screen. Under the surface, they just execute various xdotool commands. For example, here is one that moves the current window to the left ...
user avatar
0 votes
0 answers
151 views

Automatically cycle Multiple Monitors on Ubuntu VM bootup

I'm using VMware Workstation 16 Pro. HOST OS -> Windows 10. GUEST OS -> Ubuntu 20.04 LTS (with open-vm-tools installed). I have enabled 'entering full screen mode after powering on' for Ubuntu ...
user avatar
0 votes
2 answers
144 views

Using Xdotool to type in a Libreoffice Document

I have often wondered how to automate libreoffice by using xdotool. I know that the window has to be selected out of the window stack, and I tried programming it as a window bash variable under ...
user avatar
0 votes
1 answer
70 views

Trying to paste a typed command to a terminal

I am very new to robotics and ROS and am looking for some help trying to create some keyboard shortcuts that allow me to paste them into a terminal. Currently i am using the xdotool to do this. I am ...
user avatar
0 votes
0 answers
61 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 ...
user avatar
  • 1,203
0 votes
0 answers
171 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 ...
user avatar
  • 393
2 votes
2 answers
861 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="...
user avatar
  • 131
1 vote
2 answers
800 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 ...
user avatar
  • 233
0 votes
1 answer
542 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, ...
user avatar
  • 1
0 votes
0 answers
33 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 ...
user avatar
2 votes
1 answer
458 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 && ...
user avatar
  • 842
2 votes
0 answers
280 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 ...
user avatar
0 votes
1 answer
57 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 ...
user avatar
  • 101
0 votes
1 answer
407 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 ...
user avatar
  • 349
1 vote
2 answers
899 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 ...
user avatar
  • 11
2 votes
3 answers
3k 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 ...
user avatar
1 vote
0 answers
60 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
1 vote
0 answers
294 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 ...
user avatar
0 votes
2 answers
421 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-...
user avatar
  • 135
1 vote
2 answers
3k 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: $...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
3 votes
1 answer
2k 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 ...
user avatar
2 votes
1 answer
314 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 ...
user avatar
  • 73
0 votes
1 answer
370 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 ...
user avatar
  • 608
0 votes
1 answer
490 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 ...
user avatar
0 votes
0 answers
80 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 ...
user avatar
3 votes
1 answer
629 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+...
user avatar
  • 200
0 votes
0 answers
90 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. ...
user avatar
1 vote
2 answers
235 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 ...
user avatar
5 votes
1 answer
3k 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 moves the window. But when I do xdotool getactivewindow windowmove -40 0 windowsize ...
user avatar
  • 6,749
0 votes
1 answer
285 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 ...
user avatar
  • 55
1 vote
0 answers
1k 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? ...
user avatar
  • 111
6 votes
1 answer
2k 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 ...
user avatar
  • 38.8k
4 votes
0 answers
387 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 ...
user avatar
  • 13.5k
1 vote
1 answer
1k 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 ...
user avatar
  • 38.8k
5 votes
1 answer
2k 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 / ...
user avatar
0 votes
1 answer
227 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 ...
user avatar
14 votes
1 answer
3k 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 --...
user avatar
  • 1,372
1 vote
1 answer
2k 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 ...
user avatar
  • 33
2 votes
1 answer
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 ...
user avatar