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

learn more… | top users | synonyms

0
votes
0answers
9 views

xdotool : inserting unicode “by hand”: i.e NOT “key U ” but “ctrl+shift+u”

I've got a Russian keyboard layout. This one doesn't have the accute sign which is used for stress mark in academic field. I can do that by hand: After a character, for example, и: ctrl+shift+u ...
0
votes
0answers
29 views

at command is not executed

I'm automating some mouse clicks using at and xdotool as follows: echo "./autocheckout" | at 18:00 where autocheckout is a bash script as follows: #!/bin/bash # Remember to see if Javascript is ...
1
vote
1answer
67 views

Hide GUI of program after auto launching on startup

After suffering from a bug in Redshift, I found a great replacement, Iris. I have put the Iris folder in my home directory, and added the following command to Startup Applications sh ...
0
votes
0answers
16 views

How to enable autorepeat for mouse buttons 6 and 7

I have a Logitech G302 wheel mouse with two thumb buttons. I have successfully re-mapped those buttons to horizontal scrolling because this mouse is lacking the "tilt-wheel" feature. The side buttons ...
1
vote
1answer
57 views

Can I automatically send a particular application's window to the lowest z-position, when it loses focus?

I do most of my work in two applications: my web browser and my editor. I switch back and forth between them frequently with Alt-Tab. I also have an IM client (Hipchat) open at all times, but I ...
3
votes
1answer
58 views

xdotool does not terminate

xdotool click 1 works as it should: the left mouse button is clicked once. On the other hand, whenever I enter xdotool behave_screen_edge bottom click 1 in the terminal, the command does not ...
0
votes
0answers
41 views

Does xdotool has a problem on VNC server?

I am using a bash script to automatically download some files from a site, using xdotool. To maximize my effort I use, at the same time, both my physical X (GUI environment I can see in the monitor ...
3
votes
1answer
67 views

Why can't I move a window to the top left corner with wmctrl in Unity?

I've been playing around with wmctrl to take more control of my windows. I've encountered a weird behaviour where Unity reserves double the space. See this screen shot: I opened the terminal and ...
0
votes
2answers
131 views

xdotool, open and close Unity Dash on startup

on Ubuntu 14.04 the first Unity Dash search is much slower than the following searches. With xdotool I'm trying to open and then close the Unity Dash user interface on Ubuntu start-up. ...
3
votes
1answer
47 views

Is there a way to mimic “click and drag” using the keyboard?

I'm running Ubuntu 15.10 on an old 2008 MacBook. My trackpad had an unfortunate accident (prolonged exposure to condensation) and no longer recognizes the "drag" portion when I'm trying to click and ...
4
votes
2answers
447 views

How to start nautilus maximized from command line?

I can easily start Nautilus on a particular directory from command line: nautilus /home/nico/Documents But I want that Nautilus window to be maximized. How to write the command line? nautilus does ...
1
vote
2answers
53 views

Pass Variable Value as Argument to Command

I want to let xdotool type the current date automatically and wrote this bash script as a first try: #!/bin/bash STR="Hello World!" xdotool type $STR Unfortunately, it already fails at ...
15
votes
2answers
413 views

Can I minimize a window into a box on Unity?

On Irix's 4Dwm, there was an ability to minimise windows into a box (contrary to the task bar used by modern window managers). I have seen this also on an old HPUX. See the "console" square in the ...
0
votes
0answers
18 views

How to receive key presses while screen is off

I use xdotool to automate a bunch of things, like typing strings, sending key commands, etc., but Ubuntu only receives keypresses while the screen is on. If I set a script to run in an hour, by that ...
2
votes
0answers
93 views

Custom key for Home/End on Ubuntu Gnome 15.10

My laptop is Thinkpad T440. Because of Lenovo designing, Home/End key is on header, in the line with F1-F12 keys. For my convinient, I want to make some custom shortcut key to map with Home/End key. ...
2
votes
1answer
192 views

How to force an application window to be automatically maximized after starting the application?

I tried to use Docky, then I removed it and after that my browser (Chromium) can't be opened in maximum height, every time I should maximize it myself. (XFCE desktop)
0
votes
0answers
124 views

xdotool set window to specific size and location based on percentage

I usually use 2 monitors and switch (based on location) to monitors with different resolutions. I also quickstart a lot of stuff that I need on several workspaces with a single shortcut key (lot of ...
0
votes
1answer
48 views

sleep X - won't actually make bash script loop wait

I need to run this really simple script to serve my purpose: #!/bin/bash while [ 1 ]; do xdotool mousemove 2980 690 click 1 & sleep 14 done it's to make Xsane (scanner lamp) scan every ...
1
vote
1answer
286 views

Why does my xdotool key command not work?

I'm trying to run this command: xdotool key ctrl+super+d It is supposed to toggle-show desktop, but it won't work. When I press the keys myself it works though.
0
votes
0answers
44 views

xdotool won't move a window past bottom of screen

I've found that xdotool windowmove command won't move a window so that it's bottom is past the bottom of the screen. Also, with 2 monitors, xdotool acts as if the secondary screen has a taskbar, ...
0
votes
1answer
46 views

Keyboard shortcut is unstable Alt, Super etc

I want to set keyboard shortcut in Ubuntu 14.04 but it does not work properly. I use CompizConfig Settings Manager > Commands Rather than not work at all, sometimes it works. When I use Alt to Key ...
6
votes
1answer
118 views

Window 'grouping'?

I was just wondering, is there any way of 'grouping' windows? I mean, is there a way of joining the edges of two or more windows together so that when one is moved, the other moves with it, acting as ...
1
vote
0answers
32 views

Search a specific file in Gnome file manager

This script is executed by home automation assistant in Linux 14.04, Gnome-desktop #!/bin/bash gnome-open /home/Folder && xdotool search Folder | head -n 1 | tail -n 1 | VAR1=%1 | xdotool ...
7
votes
1answer
1k views

How can I run a program on startup, minimized?

I just want Telegram to be run and I have added it to startup apps. The point is that I need it to be minimized. Any commands?
5
votes
1answer
214 views

How can I move a window from an invisible viewport to the current one, without switching viewports

I use 15.04 with Unity and 4 virtual desktops. When I have opened a window on desktop 1 and am viewing desktop 2 (for example), is there a way to easily get that window from desktop 1 to show up on ...
3
votes
1answer
423 views

Xdotool does not work with xbindkeys

I want to use xdotool with xbindkeys but it does not work. This is what I tried first: "xdotool type a" m:0x1 + c:50 Shift + Shift_L this is not a duplicate as I have tried the solutions ...
1
vote
2answers
230 views

xdotool's type command eating characters

I'm trying to get xmonad to type a common sequence of characters whenever I hit a simple key combo. One instance of this problem is simply typing my email address. This is what the configuration file ...
7
votes
3answers
525 views

Display the current date & time in the window's title

Is it currently/technically possible to display the current date & time (ie: digital clock numbers) to the currently active window? Like appending some text from a script?
1
vote
0answers
304 views

Script with xdotool not working properly on a fresh reboot

I want to run streamus (chrome app) to stream youtube from terminal and asked a question relating to that in this same SE. I also got a wonderful answer and a script for my problem. But that script ...
2
votes
2answers
64 views

Lock individual application's interface

Can I lock a particular application's interface without locking the whole screen? It would be very useful at work to be able to leave certain applications open when leaving my desk as colleagues often ...
1
vote
1answer
169 views

How to run streamus app from terminal

I use Streamus to stream music from you tube. I want to know whether streamus can be started from terminal itself. I have asked this question in main software site and the author recommended to use ...
5
votes
2answers
407 views

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. ...
13
votes
4answers
2k views

How do I permanently change window titles?

Which files are involved in generating the window title? For example, if you open Rhythmbox, you see the program name as the window title. But it’s not generated by the .desktop file. Which file(s) do ...
0
votes
0answers
58 views

Can xdotool work after my screen becomes locked?

On Ubuntu 14.04, I want to use xdotools to simulate mouses and keys on a firefox window. I want to do that when I am away, so I also like to lock my window. Is it possible for xdotool still to work ...
2
votes
1answer
176 views

save firefox webpage by xdotool

I want to save a firefox webpage using xdotool, and rename the saved file to be test. $ xdotool search "<FirefoxWindowName>" windowactivate --sync \ key ctrl+s type 'test' --sync key ...
3
votes
0answers
33 views

xbindkey: press key two times in a row for a different output

I recently discovered xbindkeys and xdotool. I was wondering if there is way to remap a key to a different one if pressed two times in a row? Here's what I'm trying to accomplish: I want to start ...
2
votes
2answers
173 views

Using xdotool to count number of tabs in gnome-terminal

I am trying to find a way to determine the number of open tabs in a gnome-terminal window. Currently, the best option seems to be xdotool. I can move to the next tab using xdotool key ...
1
vote
1answer
363 views

How to make xdotool type Unicode characters

I'm trying to make a shortcut to send, for example, the universal quantifier symbol, ∀ (U+2200). Xdotool's own documentation doesn't really explain this.
2
votes
2answers
167 views

Is there a way to run a command every time the mouse moves?

I'd like to run a script every time I move my mouse. This is the first step in making a workaround so that I can use 100% of my monitor edges to go between them. Is this possible?
1
vote
0answers
313 views

How to get “xdotool windowsize” to resize a window across two monitors

I have two monitors side-by-side. I can manually resize a window to span across the two monitors. However, I am not able to automate this action using "xdotool". It appears that I can resize the ...
3
votes
1answer
179 views

Can I create a launcher for keyboard shortcuts?

Just to clarify, I do not want to create keyboard shortcuts that run desktop icons. Is there any way to create a desktop shortcut that, when clicked, runs a keyboard shortcut combination? I find the ...
4
votes
1answer
277 views

Silence GUI Program's Terminal Output

I am running a zsh function to open a .tex file in vim, while opening its related .pdf file in evince. I am currently using xdotool to open a new tab in the current gnome-terminal window, and then ...
0
votes
1answer
134 views

how to make keyboard to press ctrl key after every 5 minutes?

I have the xdotool installed and would like it to: press the Ctrl key every 5 minutes scroll a window up and down every 5 minutes make a mouse click every 5 minutes How should I proceed?
0
votes
1answer
175 views

How do I use wmctrl to detect if a window is present?

I am doing some UI automation and I want to perform some task based on the window being present. The window only opens up in same cases. The command that I want to use is: wmctrl -a "Confirm New ...
0
votes
1answer
462 views

xdotool commands run one by one

I have this bash script: #!/bin/bash function foo() { terminator xdotool type 'myalias' xdotool key Return xdotool key ctrl+shift+t xdotool type 'cd ~/git/apps/myapp/client && ...
2
votes
1answer
124 views

Is there a generic solution for reactivating a window that has been “minimized to tray”?

I have written a script that responds to a keyboard shortcut by, if it is not already open, execute the Spotify application. If Spotify is already opened, the script uses xdotool to activate the ...
3
votes
1answer
2k views

How to get PID of shell running in a terminal window under mouse?

Though similar questions asked before in this forum here , here and here, my question is different. I want to get PID of a running bash process in gnome terminal. Note: Suggested link which posted ...
7
votes
2answers
3k views

Run several xdotool commands in one line separated from each other

I'm trying to run xdotool type word then xdotool key Return from Startup Aplications Preferences. But if I use && or ;, xdotool evaluates it as continuation of input.
1
vote
1answer
157 views

Help with xdotool

I'm trying to make Conky work with Lubuntu using xdotool. xdotool search --class "Pcmanfm" behave %2 focus windowraise $(xdotool search --class "Conky") I get an error: xdotool: Unknown command: ...
0
votes
2answers
284 views

xdotool could not move mouse inside firefox

I have been trying for many days to get xdotool to move and click inside firefox but I couldn't. So please help me. My script was simple but it didn't work : #!/bin/bash firefox www.google.com # ...