Browse Source

add photo, ssh connection message

master
evan 6 years ago
parent
commit
b071b9af85
  1. 1
      .gitignore
  2. 8
      README.md
  3. BIN
      photo.jpg
  4. 7
      remarkable_mouse/remarkable_mouse.py
  5. 2
      remarkable_mouse/version.py

1
.gitignore vendored

@ -2,3 +2,4 @@ @@ -2,3 +2,4 @@
dist/
remarkable_mouse.egg-info
**/__pycache__
build/

8
README.md

@ -4,6 +4,8 @@ Use your reMarkable as a graphics tablet. @@ -4,6 +4,8 @@ Use your reMarkable as a graphics tablet.
Special thanks to [canselcik](https://github.com/canselcik/libremarkable) and [LinusCDE](https://github.com/LinusCDE/rmWacomToMouse) for inspiration.
![demo](photo.jpg | width=600)
# Usage
``` bash
@ -13,9 +15,13 @@ remouse @@ -13,9 +15,13 @@ remouse
By default, `10.11.99.1` is used as the address. Seems to work pretty well wirelessly, too.
# Passwordless login
# Examples
``` bash
# specify address, monitor, orientation, password
remouse --address 192.168.1.1 --orientation right --monitor 1 --password foobar
# pubkey login
ssh-keygen -f ~/.ssh/remarkable -N ''
ssh-copy-id -i ~/.ssh/remarkable.pub root@10.11.99.1
remouse --key ~/.ssh/remarkable

BIN
photo.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 KiB

7
remarkable_mouse/remarkable_mouse.py

@ -85,6 +85,7 @@ def open_eventfile(args): @@ -85,6 +85,7 @@ def open_eventfile(args):
pkey=pkey,
look_for_keys=False
)
print("Connected to {}".format(args.address))
# Start reading events
_, stdout, _ = client.exec_command('cat /dev/input/event0')
@ -150,6 +151,7 @@ def read_tablet(args): @@ -150,6 +151,7 @@ def read_tablet(args):
def main():
try:
parser = argparse.ArgumentParser(description="use reMarkable tablet as a mouse input")
parser.add_argument('--orientation', default='left', choices=['vertical', 'left', 'right'])
parser.add_argument('--monitor', default=0, type=int, metavar='NUM', help="monitor to use")
@ -166,10 +168,9 @@ def main(): @@ -166,10 +168,9 @@ def main():
log.setLevel(logging.DEBUG)
read_tablet(args)
except KeyboardInterrupt:
pass
if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
pass

2
remarkable_mouse/version.py

@ -1 +1 @@ @@ -1 +1 @@
__version__ = '1'
__version__ = '3'

Loading…
Cancel
Save