---
name: "exec-on-click"
section: "1"
platform: "linux"
package: "pwdsphinx-tools"
version: "2.0.3-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/exec-on-click"
---

# 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

This is a simple tool which waits until a left-mouse click and then it 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.

## 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⟩\\c . 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)`
