summaryrefslogtreecommitdiff
path: root/README.md
blob: eeb88cf66c20648462e9b9fc5aa68f05da1855b1 (plain)
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
# magic4linux

A snoopdesigns's fork of [mafredi/magic4linux](https://github.com/mafredri/magic4linux).

Allows you to use the magic remote on your webOS LG TV as a keyboard/mouse for your ~~PC~~ Linux machine.

This is a Linux implementation of the [Wouterdek/magic4pc](https://github.com/Wouterdek/magic4pc) client.

A virtual keyboard and mouse is created via the `/dev/uinput` interface, as provided by the [bendahl/uinput](https://github.com/bendahl/uinput) library. For non-root usage, please add udev rules as instructed in the [`uinput`](https://github.com/bendahl/uinput#uinput-----) documentation.

## Usage

There are no options yet.

```shell
magic4linux
```

## Building

```shell
GOOS=linux go build
```

Built executable placed in $(/usr/bin/go env GOPATH)/bin

## Some tips from snoopdesigns
WebOS CLI install:
```shell
npm install -g @webos-tools/cli
```
Some usefull CLI commands:
```shell
ares-setup-device - username 'prisoner' port 9922
ares-device -i - device info
```