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

1
vote
1answer
27 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
29 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
17 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
50 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
12 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
0answers
34 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
43 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 ...
2
votes
1answer
292 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 ...
4
votes
2answers
352 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
48 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
28 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
30 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
76 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
23 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
91 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
111 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
87 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
59 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 ...
1
vote
0answers
293 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
166 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
2answers
544 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
156 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
62 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
766 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
131 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
658 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
168 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
728 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
809 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
771 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
975 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
1k 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 ...