Code Monkey home page Code Monkey logo

night-vision's Introduction

night-vision-logo

night-vision

Virtual cursor for LXC Containers running X11 display

night-vision demo.webm

Usage

$ ./night-vision {ms}

{ms} Milliseconds delay between cursor iteration, default: 100

# 50-ms delay is fine, 10-100 is probably the expected range
$ ./night-vision 50
# 1-ms delay, uses more CPU resource naturally
$ ./night-vision 1

Building from source

$ g++ night-vision.cpp -o ./build/night-vision -lX11

Compiled release builds

Compiled builds are available for amd64, aarch64 at the moment.

Contributing

Keep CPU cost to minimum on PRs since we are targing ARM.

Python

There is also a python release of night-vision in ./python It uses more CPU resource, but is still viable at 100-ms delay

The ./python directory also includes a poetry virtual environment

night-vision's People

Contributors

meganerddev avatar

Stargazers

 avatar

Watchers

 avatar

night-vision's Issues

Define and create dotfile for custom user environment settings

Objective: Define and create dotfile for custom user environment settings

Some settings

  1. minHeight, maxHeight, maxLeft, maxRight - We can have panels where the virtual cursor is not raise higher if so desired

    int minHeight = 0; // TODO: User-defined via dotfile settings

    if (XGetWindowAttributes(display, root, &winAttrs)) {
    if (winAttrs.height >= minHeight) {
    XRaiseWindow(display, window); // Conditionally raise the cursor window
    }

  2. cursorType - Will need us to define a few different cursor themes, currently we have just the 1

  3. delay - Override the default sleep delay

Create benchmark

Find and create means for benchmark for CI during commits

a local benchmark is phone for now

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.