Git Product home page Git Product logo

remarkablelamyeraser's Introduction

RemarkableLamyEraser

Standalone tool that turns the button on the Lamy Pen into an eraser on the reMarkable.

This is a continuation of Isaac Wisdom's repository (also see here), updated to work with the reMarkable 2 version 3.5.x.

NOTE: This repository is in a very early stage. Fully expect the executable to misbehave if (i) you are not running in right handed portrait mode, and (ii) you are editing a PDF instead of a notebook. Working on it.

Further, the original repository was altered in the following major ways:

  • ReMarkable 1 support has been removed.

If you object to any of these, and are willing to maintain the respective functionality, feel free to open a pull request.

Installation

The tool will definitely break when the reMarkable updates. When that happens, just reinstall!

$ sh -c "$(wget https://raw.githubusercontent.com/slotThe/RemarkableLamyEraser/main/scripts/LamyInstall.sh -O-)"

Uninstall

 $ sh -c "$(wget https://raw.githubusercontent.com/slotThe/RemarkableLamyEraser/main/scripts/LamyUninstall.sh -O-)"

Usage

The default configuration has the trigger "press and hold" mapped to the effect "erase", and the trigger "double click" mapped to the effect "undo". However, your configuration can be customised by changing the configuration file at ~/.config/LamyEraser/LamyEraser.conf (for example, by running nano ~/.config/LamyEraser/LamyEraser.conf). In this file, you can freely assign effects to different triggers.

The recognized triggers are:

  • click
  • double-click
  • triple-click
  • quadruple-click
  • quintuple-click
  • press&hold
  • double-press&hold
  • triple-press&hold
  • quadruple-press&hold
  • quintuple-press&hold

Effects are divided into tools and actions; actions are compatible with click-type actions, while tools work with press-and-hold-type triggers, or with click-type triggers as toggles.

The available actions are:

  • toolbar: Presses the toolbar panel button.
  • writing: Presses the writing utensil button.
  • undo: Presses the undo button.
  • redo: Presses the redo button.

The available tools are:

  • eraser-erase: Changes to eraser tool. On deactivation, changes back to writing utensil; note this mode uses special features available from the marker plus.
  • select: Changes to select tool. On deactivation, changes back to writing utensil

After making changes to the configuration file, run this command to restart the program:

$ systemctl restart LamyEraser.service

You can also check your current config by running the program directly

$ systemctl stop LamyEraser.service
$ RemarkableLamyEraser

This will furthermore print some additional debugging information—great when opening an issue!

Developing

There is Dockerfile available, which builds the toolchain and comes equipped with qtcreator. To build, run

$ docker build -t remarkable .

Running this is a bit awkward, as it requires teaching docker about X forwarding:

$ docker run --rm -ti --net=host --ipc=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --env="QT_X11_NO_MITSHM=1" remarkable

Other Styli

The original project was also confirmed to work with:

  • Kindle Scribe Pen
  • Samsung S6 S Pen
  • Wacom One Pen CP91300B2Z

remarkablelamyeraser's People

Contributors

isaacwisdom avatar slotthe avatar toorero avatar geist5000 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.