Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xdotool]

a command line tool that can simulate X11 keyboard input and mouse activity and manipulate windows

0
votes
2answers
29 views

Trigger a certain key combo with another one

Can anyone suggest me on what would be the best way to trigger a certain key kombo with another one. Say, I'd like to send CTRL+= while pressing CTRL+[. Basically I want to workaround zoom for Google ...
6
votes
1answer
717 views

xdotool and xbindkeys

I have an Acrobat reader that does not zoom on Control+plus but rather on Control+acute (Control-plus annoyingly rotates the document). I would like to fix this using xbindkeys and xdotool but the ...
5
votes
1answer
186 views

XDoTool Command to Wait For Process to End

I use the program VisiPics to delete dupicate pictures. The processing time for deletion varies dependent on the number of pictures and duplicates. I created an Xdotool command to carry out certain ...
3
votes
1answer
226 views

xdotool messes up keyboard input

I'm trying to create some scripts using xev and xdotool to allow me to record and re-play macros in linux. I've got the recording working with xev, and the replaying mostly works but appears to leave ...
1
vote
1answer
668 views

how to determine in what viewport (compiz/unity) a window is placed?

I am writing a script that requires determining in what viewport a window is placed. My desktop is 2x2 (4 viewports), it is usually thought as being 4 virtual desktops but on compiz/unity it is ...
0
votes
1answer
90 views

Why do `xwininfo` and `xdotool` give me different window ids?

In a tab of a terminal emulator (lxterminal), I try to find out its window id by clicking in the tab and the process which "owns" the window (I am still not sure what is the word to describe the ...
0
votes
1answer
79 views

How can I bring a background GUI job to the front of my desktop?

In Lubuntu 18.04, I have many background GUI jobs running in a bash shell. Among them, I have a evince process running in background: $ jobs | grep evince [29] Running evince ...
0
votes
1answer
249 views

Can't get x forwarding to work with android

I'm trying to send keystrokes from my android to my Retropie using ssh. After a lot of searching I found that I have to use ssh with the -X flag which was already a hassle as most apps don't support ...
0
votes
1answer
1k views

Install problem for xdotool

Since I have problems with my Internet connection I'm not able to always run command apt-get install xdotool in Terminal, so I would like to download the xdotool package manually from website in .zip ...
4
votes
0answers
1k views

More than one WIDs associated with “Chrome” and with “evince”?

I am running Google Chrome browser with 17 tabs. $ xdotool search --name "Google Chrome" 79691777 Why does the following return 7 WIDs? 7 doesn't match any of the fact that I have 17 tabs in a ...
3
votes
0answers
81 views

A shrug ¯\_(ツ)_/¯ in awesome key bindings

This is the code I currently have: -- Silly shrug emoji. awful.key({ modkey }, "F12", function () awful.util.spawn("xdotool getactivewindow type '¯\\_(ツ)_/¯'", false) end, {...
3
votes
0answers
641 views

Keyboard shortcut to open a new terminal if one doesn't exist on this desktop. Otherwise, focus the current one

I would like to create a keyboard shortcut that will open a new terminal window only if none exists on the current desktop. Otherwise, the currently existing one will be focused. I just upgraded from ...
3
votes
0answers
619 views

xdotool prints 8 instead of Tab

I'm currently working on a "autotype"-script for pass. In oder to do that, I need to type the username, press 'Tab' and then type the password. For testing I'm using the following code: WID=$(...
2
votes
0answers
371 views

How to launch an application as a dock on openbox

If i do obxprop|grep dock and click on gnome-panel for example, my result is : _OB_APP_TYPE(UTF8_STRING) = "dock" For the rest, it's : _OB_APP_TYPE(UTF8_STRING) = "normal" How can i force a ...
2
votes
0answers
844 views

How to detect whether a window is in focus?

I'm not experienced in scripting but I've made this script: #!/usr/bin/env bash # hint: use "xdotool getmouselocation" to get values if xdotool getwindowfocus getwindowname | grep -Eq " - ...
1
vote
0answers
61 views

Eliminate xdotool delay?

I have assigned the key F2 to the command bash -c "sleep 0.1;xdotool type --clearmodifiers $(date +%Y%m%d%H%M%S)" There is a delay of half a second (not because of the sleep 0.1 command that should ...
1
vote
0answers
426 views

XBindkeys and Mouse key's giving keyboard numbers (0-9)

XINPUT ➜ xinput --list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ ...
1
vote
0answers
121 views

How to combine conditions with xdotool?

Is it possible to search for both the --class and --name using xdotool? xdotool search --all --onlyvisible --class "some_val" --name "another val" The above returns an error because the first ...
1
vote
0answers
148 views

keyboard shortcut for inserting text

how to set a keyboard combination for inserting special string in current window at current position? for example, when I'm on Firefox address bar, or Chrome address bar, and press Alt+Ctrl+N it ...
0
votes
0answers
25 views

Multiple keyboard simulations for multiple programs using xdotool

I have a program that display a set of picture randomly with xdotool: it display a picture in a folder and sometimes it press left arrow,sometimes it press right arrow with xdotool. WHAT I WANT: Now ...
0
votes
0answers
36 views

Gnome-terminal's opened after first one is opened & minimised, open but don't come to focus

I am running Arch, tint2 & Openbox with all the latest updates. I have the following snippet in Openbox which is a keyboard shortcut; <keybind key="w-t"><action name="Execute"><...
0
votes
0answers
63 views

xdotool getmouselocation and getwindowgeometry Y location inconsistency

I have been working with automating some of the user actions using xdotool and java in Ubuntu 18.04.1 LTS x64 Desktop. I am using java robot to move my mouse and xdotool (via Java Process.exec) to ...
0
votes
0answers
33 views

Use mouse click as keyboard key archlinux + xfce 4.12, no action

Based on this : #!/bin/bash set -x exec &>/tmp/log id=$( xinput list | awk '/Dell USB Keyboard/{print gensub(/.*id=([0-9]+).*/, "\\1", "1")}' ) xdotool mousedown $1 while IFS= ...
0
votes
0answers
13 views

how to focus menu window on the object (instead the mouse cursor position) with a xdotool?

I use xdotool key Menu with super R key to show menu. But when i press Super R - menu appears at the current mouse cursor position. Can i make it appears at the current file position
0
votes
0answers
28 views

xdotool type and stty occasionally cut off first letter of input

I defined a simple function prepend (below) that should automatically place a repeated term of a bash command in the following input prompts. For example, by typing prepend git in the terminal, all ...
0
votes
0answers
138 views

Linux Mint 19 - xdotool not minimizing the terminal windows invoked by shortcut

I am using Linux Mint 19. Default terminal is gnome-terminal I created a custom shortcut In Keyboard -> Shortcut with the command gnome-terminal -e /home/ismail/Documents/Translate/screen_ts_short....
0
votes
0answers
44 views

Can I unbind a key when a certain window has focus in the sway window manager?

Can I pass some keys for a specific window? I could not find in Sway's man pages or the issues on Github. At the moment, I'm executing a script with bindsym XF86Forward exec sway-next (requires jq ...
0
votes
0answers
72 views

linux mint xdotool type web link

I am trying to use xdotool to type a URL and instead of: https://www.sample.com/sales/search?facet=T&facetT=45259587&facet.T=44143327&facet.T=25866782&facet.T=260287 I get: https;/...