• Stars
    star
    301
  • Rank 138,451 (Top 3 %)
  • Language
    C
  • License
    BSD 2-Clause "Sim...
  • Created over 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Small X utility to perform elementary actions on windows

xdo(1)

Name

xdo - Perform actions on windows

Synopsis

xdo ACTION [OPTIONS] [WID โ€ฆโ€‹]

Description

Apply the given action to the given windows.

If no window IDs and no options are given, the action applies to the focused window.

Actions

close

Close the window.

kill

Kill the client.

hide

Unmap the window.

show

Map the window.

raise

Raise the window.

lower

Lower the window.

below

Put the window below the target (see -t).

above

Put the window above the target (see -t).

move

Move the window.

resize

Resize the window.

activate

Activate the window.

id

Print the windowโ€™s ID.

pid

Print the windowโ€™s pid.

key_press
key_release

Simulate a key press/release event.

button_press
button_release

Simulate a button press/release event.

pointer_motion

Simulate a pointer motion event.

-h

Print the synopsis and exit.

-v

Print the version and exit.

Options

When options are provided, the action applies to all the children of the root window that match the comparisons implied by the options in relation to the focused window.

-r

Distinct ID.

-c

Same class.

-C

Distinct class.

-d

Same desktop.

-D

Distinct desktop.

-n INSTANCE_NAME

The window has the given instance name.

-N CLASS_NAME

The window has the given class name.

-a WM_NAME

The window has the given wm name.

-t WID

The target window for the below and above actions.

-p PID

The window has the given pid.

-k CODE

Use the given code for the key_press, key_release, button_press and button_release actions.

-x [ยฑ]PIXELS

Window x coordinate (or delta) for the move and pointer_motion action.

-y [ยฑ]PIXELS

Window y coordinate (or delta) for the move and pointer_motion action.

-w [ยฑ]PIXELS

Window width (or delta) for the resize action.

-h [ยฑ]PIXELS

Window height (or delta) for the resize action.

-m

Wait for the existence of a matching window.

-s

Handle symbolic desktop numbers.

Examples

Close the focused window:

xdo close

Close all the windows having the same class as the focused window:

xdo close -c

Hide all the windows of the current desktop except the focused window:

xdo hide -dr

Activate the window which ID is 0x00800109:

xdo activate 0x00800109

Send fake key press/release events with keycode 46 to the focused window:

xdo key_press -k 46; sleep 0.2; xdo key_release -k 46

More Repositories

1

bspwm

A tiling window manager based on binary space partitioning
C
7,693
star
2

sxhkd

Simple X hotkey daemon
C
2,755
star
3

plato

Document reader
Rust
1,258
star
4

xtitle

Outputs X window titles
C
120
star
5

diana

A command line interface to the aria2 daemon
Python
112
star
6

bubblegum

A vim color scheme based on xoria256
Vim Script
88
star
7

shkd

Simple HotKey Daemon
C
72
star
8

xresources-color-schemes

Various Xresources Color Schemes
50
star
9

vim-sxhkdrc

Vim syntax for sxhkd's configuration files
Vim Script
49
star
10

sutils

Small command-line utilities
C
42
star
11

ciecam02

An implementation of CIECAM02
JavaScript
39
star
12

etc-linux

Configuration files
Vim Script
35
star
13

bin-linux

Various shell scripts
Python
34
star
14

fmon

File monitor
C
32
star
15

keydouble

A little X utility to enable the use of ordinary keys as modifiers
C
30
star
16

txtw

Return the pixel width of the given strings for the given font
C
29
star
17

xlsw

List the X window tree contents
C
26
star
18

Coal-Graal.tmTheme

A dark and lispy TextMate theme.
26
star
19

owlman

A pacman and cower wrapper
Shell
24
star
20

sketch

Draw sketches on e-paper
Rust
19
star
21

xqp

X Query pointer
C
19
star
22

sdunpack

Unpack a StarDict dictionary as plain text
Rust
18
star
23

paragraph-breaker

An implementation of the Knuth-Plass algorithm for breaking paragraphs into lines
Rust
17
star
24

sres

Print the current screen resolution on stdout
C
16
star
25

backlight

Get and set the backlight brightness
C
15
star
26

bin

Shell scripts
Shell
14
star
27

xwinfo

Print window informations
C
14
star
28

invisibone

Terminal color scheme
14
star
29

Common-Lisp.tmbundle

A Slimy Common Lisp TextMate bundle.
Perl
11
star
30

thmkit

Utilities aimed at producing homogeneous color themes
Python
11
star
31

sieve

Generates a palette from an image
Python
11
star
32

fdb

Path frecency database
Rust
10
star
33

etc

Configuration files
Vim Script
9
star
34

ewmhstatus

Outputs the current EWMH desktop name and window title
C
8
star
35

aco2gpl

Converts a Photoshop palette to a GIMP palette
C
7
star
36

Z

Fast terminal directory jumping
Go
7
star
37

homebrew-formulae

Homebrew formulae
Ruby
4
star
38

ciebase

Basic building blocks for CIE color spaces
JavaScript
4
star
39

hestia

A CLI Interface to the mldonkey Daemon
Python
3
star
40

stoic

Tiny static site generator
Python
3
star
41

baskerville.github.com

The Art of Baskerville
HTML
2
star
42

Flexible-Words-TextMate

A TextMate Plugin
Objective-C
2
star
43

SimpleIcons

Simple scalable grid based icon set
2
star
44

ledcns

Set the state of the keyboard LEDs
C
2
star
45

eat

A CLI interface to Ge.tt's API
Python
2
star
46

Inconsolata

Personal fork of Raph Levien's font
2
star
47

dmenu_qxyw

A patch for dmenu providing "width / offsets / quiet" options
1
star
48

PKGBUILDs

Arch Linux user packages
Shell
1
star
49

vim-quirks

Personal vim workarounds
Vim Script
1
star
50

vanisher

Mac OS X utility that hides the mouse pointer on demand
C
1
star