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

7
votes
3answers
384 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
69 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
44 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
122 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 ...
2
votes
1answer
88 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
2answers
552 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
18 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 ...
1
vote
1answer
39 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 ...
2
votes
0answers
22 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
72 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
73 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
78 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
100 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 ...
2
votes
2answers
96 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 ...
3
votes
1answer
109 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
73 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
69 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
156 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 && ...
0
votes
0answers
18 views

How bind keyboard without switchig deskop?

I need to bind keyboard for programs, runned in separated desktops. I tried xdotool, and it is Ok, when window is focused, but how to use them without switching, for example — into desktop #1 — to use ...
1
vote
1answer
89 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 ...
1
vote
0answers
68 views

xdotool for writing a preformated command in bash [closed]

when I run prompt$ xdotool type 'find -iname "**"' I get this find -iname "**"prompt$ find -iname "**" how could I have that prompt$ find -iname "**" I use xdotool to fill the command line ...
3
votes
1answer
807 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 ...
5
votes
2answers
1k 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
97 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
0answers
36 views

How to send files to a certain folder

I am using PCmanfm and I am trying to make it to where whenever I highlight a few files I can right-click and send them to a certain folder. Or I could probably use xdotool but I don't know how I ...
0
votes
0answers
40 views

How could I remap F4 into combo key Shift + F1

I'm newbie with xdotool and xbindkeys. I need to tell my ubuntu know that when I press F4 key, it should be translated into Shift+F1 I really appreciate for your help. Thanks
0
votes
2answers
172 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 # ...
0
votes
1answer
33 views

unable to filter out xscreensaver at ccsm opacity plugin?

From this answer, I managed to lower the problem concerning "Focus & Raise Behaviour" = "Very High", by using the "opacity, brightness and saturation" plugin setting "any" window to 95% opacity. ...
0
votes
1answer
151 views

Can't get shortcut to work in gnome

I'm trying to set up qwerty shortcuts with dvorak layout but can't seem to send the key presses can someone look at this and tell me what I am doing wrong xdotool is working if I manually run it in ...
1
vote
1answer
275 views

Can xdotool position the mouse relative to current location?

Is there any way of choosing not a screen location, but a location relative to where it is? For example, it could be xdotool mousemove +5 +0 Does this exist?
2
votes
1answer
123 views

How to modify xdotool output to export them as variables?

I am executing this command: xdotool getmouselocation --shell and it gives me: X=1020 Y=563 SCREEN=0 WINDOW=90183822 How can I get the X value and the Y value into a variable, for use later on in ...
2
votes
0answers
64 views

xdotool does not type for me

xdotool no longer types anything. It worked well a few days ago. for example this command has no outputs (and no errors): xdotool type 'Hello world!' What is the problem? I uninstalled and ...
2
votes
1answer
549 views

xbindkeys + xdotool or xvkbd not working well

In my .xbindkeysrc I'm trying to bind alt+l to the up arrow key: xvkbd Works okay in some places, but doesn't send anything at all in the terminal for example: "xvkbd -xsendevent -text "\[Up]"" ...
4
votes
1answer
247 views

Can I use xdotool as an auto-clicker?

Is there a way I can use xdotool to perform a certain number of mouse clicks per second while holding down a certain key?
3
votes
3answers
1k views

Xbindkeys won't work properly

I have bit of a problem. I wanted to remap some hotkeys I am used to from my previous system but I can't get it to work properly with xbindkeys. xbindkeys recognizes the combination but somehow the ...
2
votes
1answer
226 views

xdotool can't type “y”

For a small automation process I am using xdotool because I need my script to ssh into a virtual machine and execute commands there. After upgrading Ubuntu to 13.10, it seems like xdotool can't type y ...
1
vote
1answer
96 views

bfgminer not catching xdotool

I'm trying to send a short sequence of keystrokes to bfgminer without bringing its window to focus, it is running in a gnome-terminal. #! /bin/bash xdotool key --window 25165831 p sleep 1 xdotool key ...
0
votes
1answer
1k views

Xdotool to automate moves in Epiphany (Boulderdash Clone)

I'm trying to automate critical moves in my favorite Boulderdash clone called "Epiphany" (available through Ubuntu Software Centre). In the following example the character should move: 3x "Down ...
1
vote
0answers
174 views

How to make linux to press a key everytime I write something

As the title says, I want linux to autopress a key everytime I write something. For example, whenever I type _I it should autopress ctrl+j ( if you're wondering why, it's for codeblocks :) ) I ...
3
votes
2answers
992 views

Is there a way to send the switch windows signal without “Alt-Tab”?

I'm trying to bind a switch window button on my mouse into Ubuntu. Currently I'm trying to do it with xbindkeys and xte, but do this in .xbindkeysrc only outputs a Tab and doesn't switch windows. ...
2
votes
1answer
199 views

How to figure out if a window is actually displayed on the screen using shell script?

I'm trying to write a shell script that recognizes if Thunderbird window is displayed and if so it disposes it to the messages tray. I'd like to use it in this answer of "How to keep Thunderbird and ...
1
vote
2answers
884 views

Sending keyboard commands to Ubuntu through Python. Remote for my Blackberry

I am trying to build a remote control application to control media on my Ubuntu. Does anyone know a way in order to accomplish this. The media keys in particular. Thank you. EDIT 1: I have tried ...
5
votes
3answers
1k views

Create a custom shortcut that types clipboard contents

I want to simulate keyboard input so that I can "paste" my clipboard contents to applications that don't allow it (e.g. remote KVM). Right now, I'm trying to use xdotool and xclip: xdotool type ...
2
votes
2answers
976 views

xdotool: Unknown command: 21043361

As far as I know the below line of code should pull into focus the open nautilus window xdotool windowactivate `xdotool search --onlyvisible --class nautilus` But I am getting the error ...
4
votes
1answer
1k views

How can I set xdotool and gedit to open a document and save it twice?

I need assistance in creating a script that does the following: Open Gedit Open a document with Gedit Save the document twice Close Gedit I was wondering how can I make it happen with Gedit and ...
0
votes
1answer
2k views

Remap Ctrl+PageUp, Ctrl+PageDown (switch tabs in gnome)

In gnome-shell, if you do Ctrl+Page Down, you can switch to the previous tab. However, when I'm on a laptop, there are no Page Down and Page Up keys. So, I would like to map this key combination to ...