Metadata-Version: 2.4
Name: wiimote-spotlight
Version: 0.3.0
Summary: Add your description here
Author: Daniel Raniz Raneland
Author-email: Daniel Raniz Raneland <raniz@factor10.com>
License-Expression: MIT-0
Requires-Dist: evdev>=2.0.0
Requires-Dist: pycairo>=1.29.2
Requires-Dist: pygobject>=3.58.0
Requires-Python: >=3.13
Description-Content-Type: text/markdown

# Wiimote spotlight

I simple Python application that uses a Wiimote to control a spotlight overlay on KDE/Plasma on Wayland.

# Installation
Easiest is to just run it from the PyPi package directly:

```shell
$ uvx wiimote-spotlight
```

But if you want to install it either do that from a checked out copy of this repository, or point uv to the published package.

```shell
$ uv install tool .
```

```shell
$ uv install tool wiimote-spotlight
```

# Usage

Connect your Wiimote via Bluetooth, put it down so it is still and then run `wiimote-spotlight` (it calibrates on startup).
Hold _B_ to show the spotlight and wave the wiimote around to move it.

The other buttons are mapped as follows:

| Button | Key           |
|--------|---------------|
| A      | Right         |
| +      | Right         |
| -      | Right         |
| Left   | Left          |
| Right  | Right         |
| Up     | Up            |
| Down   | Down          |
| Home   | _Recalibrate_ |
| 2      | ESC           |

# Monitor selection
The spotlight is only shown on a single monitor, which one can be selected with `wiimote-spotlight -m <monitor>`, use `wiimote-spotlight -l` to list available inputs.

If exactly two monitors are connected and one of them is named _eDP-1_ the the _other_ monitor is selected (this is a typical presentation setup), otherwise _eDP-1_ or monitor 0 is selected.

# Arguments
See `wiimote-spotlight -h` for supported arguments
