File: exec-on-click.md

package info (click to toggle)
pwdsphinx 2.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 832 kB
  • sloc: python: 3,807; javascript: 1,001; sh: 238; makefile: 74
file content (40 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% exec-on-click(1) | simple tool that executes command when a left mouse-click is detected

# NAME

exec-on-click - simple tool that executes command when a left mouse-click is detected

# SYNOPSIS

```
exec-on-click <command>
```

# DESCRIPTION

`exec-on-click` is a simple tool that waits for a left mouse click and then executes whatever parameters the script has been called with.

# EXAMPLE

```
echo -n "hello world" |  exec-on-click xdotool type --clearmodifiers '$(cat)'
```

Types `hello world` into the current window using [xdotool](https://github.com/jordansissel/xdotool), a program that lets you simulate keyboard input and mouse activity.

# REPORTING BUGS

https://github.com/stef/pwdsphinx/issues/

# AUTHOR

Written by Stefan Marsiske.

# COPYRIGHT

Copyright © 2023 Stefan Marsiske.  License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.  There is NO WARRANTY, to the extent permitted by law.

# SEE ALSO

`sphinx(1)`