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
1 vote
1 answer
127 views

What will happen if I disable wayland?

One of the after-effects I've noticed is that the three-finger swipe doesn't work. Xdotool key shortcuts also don't work. I wanted to use xdotool, but I have to disable Wayland first. Is there any ...
Purushottam Nawale's user avatar
0 votes
0 answers
54 views

Program mouse's drag and drop to a keyboard key

I'm trying to program with xbindkeys and xdotool one of my keyboard keys (key 1, the one that types 1 and !) to act like a mouse's left button, so that I can click, drag and drop, and so on. The ...
Keiji's user avatar
  • 1
0 votes
0 answers
65 views

How to send a command to a firefox window with a specific url? (xdotool)

I have a particular need, while I write the notes with Evernote on a firefox window, I need to send back the video lesson on another firefox window. The video lessons can be either on youtube or on ...
CaneRandagio's user avatar
0 votes
0 answers
22 views

Alternative to using xdotool for Starting an application in hidden mode in ubuntu

I found this link to start an application in minimized/hidden mode : How can I run a program on startup, minimized? Here we are first launching our application and then using xdotool to minimize/hide ...
Vipul Gupta's user avatar
0 votes
1 answer
96 views

Custom Keyboard Shortcuts for jumping to next word or end of line – Ubuntu 22.04

Hej there! I switched from Mac to Linux currently and am still trying to figure out how to adjust some keyboard shortcuts. For example I mapped Ctrl + Right arrow to End key in the settings by adding ...
salat69's user avatar
2 votes
1 answer
362 views

How can I write a program to press keys, such as Windows + D, in Wayland? (replace `xdotool` in Wayland)

My show Desktop icon/script doesn't work in the default Ubuntu 22.04 install, because it relies on xdotool to press WindowsD, and xdotool doesn't work in Wayland, and Ubuntu 22.04 comes with the ...
Gabriel Staples's user avatar
1 vote
1 answer
116 views

Having trouble moving windows between screens via the terminal

I'm running 22.04.2 LTS. I'm trying to write a script that will organize open windows. Unfortunately, wmctrl -l returns an incomplete list. PS /home/edward/Documents/rclone> wmctrl -l 0x0260003d 1 ...
Ed C.'s user avatar
  • 11
-2 votes
1 answer
234 views

Xdotool - key pressing at intervals

I would like the F6 button to be pressed every 20 minutes in the game. I have xdotool but i dont know how to used it. I have Linux Mint. I know now: while sleep 1200; do xdotool key F6 done This is ...
Lucjan Barasiński's user avatar
0 votes
1 answer
253 views

Xdotool not displaying any results

I am a beginner to Linux and really having fun using it so far, but it seems that there is a problem I cannot solve, or at least don't quite understand -- The xdotool from X11 Project doesn't work on ...
fahad almarri 's user avatar
0 votes
0 answers
118 views

Wrangling two full-screen applications programmatically/remotely

I am running Ubuntu 22.04 on a machine with a server on it that controls two fullscreen applications. The first application is Firefox, running in kiosk mode, and the second is a fullscreen VLC ...
Nolan B.'s user avatar
  • 101
0 votes
0 answers
112 views

How to run xdotool in the background

I've been using xdotool as a macro for a game. Is there any way to have it run in a minimized window without it affecting my other active windows and still looping? The script below is the one I've ...
Mr Gameboy's user avatar
1 vote
1 answer
705 views

xdotool unable to work after the 22.04.1 LTS update

my xdotool stopped working with the 22.04.1 LTS update . . . anyone else facing the same issue ? Here's my command: xdotool key F11 xdotool key alt + Tab and many other command that uses xdotool it ...
Fixel's user avatar
  • 13
1 vote
1 answer
224 views

How to lock mouse movement using xdotool

How can I achieve locking my mouse movement on the spot rather than moving to some defined X and Y coordinates? on the spot means if my mouse is in the middle, with just a keybind it'll lock it there ...
AzurBarnitzke's user avatar
0 votes
2 answers
144 views

xdotool windows tilling 3 x 3 grid

What I want to do? I want to be able to click on a window (terminal window, any software window, etc...) to activate it and click on a shortcut key which will resize and move the active window to a ...
André Lourenço's user avatar
2 votes
1 answer
72 views

Occasional errors using xdotool

I have been compiling a complex bash script using xdotool, and it has been working very well except once in a while I get an error which is rather annoying, as that section of script is aborted. The ...
Michael Moore's user avatar
0 votes
1 answer
206 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 ...
raylight's user avatar
  • 443
3 votes
1 answer
1k 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. ...
AsKreY's user avatar
  • 31
0 votes
1 answer
103 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 ...
simone's user avatar
  • 261
1 vote
1 answer
215 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., ...
tenxsoydev's user avatar
0 votes
1 answer
372 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 ...
klpu39's user avatar
  • 85
1 vote
1 answer
707 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, ...
pLumo's user avatar
  • 26.3k
4 votes
1 answer
1k 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 ...
user2490003's user avatar
0 votes
2 answers
269 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 ...
CraigslistCesium's user avatar
-1 votes
1 answer
82 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 ...
Mike Becker's user avatar
0 votes
0 answers
110 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 ...
Mehraban's user avatar
  • 1,255
0 votes
0 answers
299 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 ...
raylight's user avatar
  • 443
2 votes
2 answers
1k 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="...
ranger's user avatar
  • 131
1 vote
2 answers
2k 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 ...
Kalcifer's user avatar
  • 233
0 votes
2 answers
857 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, ...
Pnz's user avatar
  • 1
0 votes
0 answers
39 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 ...
Mohith Sai Aravind N's user avatar
3 votes
1 answer
997 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 && ...
somethis's user avatar
  • 894
2 votes
0 answers
432 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 ...
Ankit Wasankar's user avatar
0 votes
1 answer
88 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 ...
Azam Alvi's user avatar
  • 101
1 vote
1 answer
898 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 ...
Simon's user avatar
  • 419
1 vote
2 answers
1k 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 ...
Oliver's 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 ...
Ubuntovative is here's user avatar
1 vote
0 answers
89 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 ...
Bernt Ribbum's user avatar
0 votes
1 answer
2k 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 ...
Stanislav Voloshchuk's user avatar
1 vote
0 answers
518 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 ...
Tibia REC's user avatar
0 votes
2 answers
574 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-...
S. N.'s user avatar
  • 175
1 vote
2 answers
4k 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
2 votes
1 answer
2k 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 ...
AndrewTFox's user avatar
3 votes
1 answer
3k 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 ...
bsayles15's user avatar
2 votes
1 answer
395 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 ...
Jdclark's user avatar
  • 73
0 votes
1 answer
515 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 ...
alchemy's user avatar
  • 744
0 votes
1 answer
832 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 ...
Fritjof Larsson's user avatar
0 votes
0 answers
95 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 ...
ttuan's user avatar
  • 1
3 votes
1 answer
840 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+...
Tschösi's user avatar
  • 172
0 votes
0 answers
108 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. ...
someone235's user avatar
1 vote
2 answers
263 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 ...
Erik Lievaart's user avatar