Git Product home page Git Product logo

corvo's Introduction

corvo

Simple X utility to hide the mouse cursor in certain windows. You pass it a list of conditions and if a matching window becomes focused the mouse cursor is hidden.

usage

Help output listed below. Flags can be repeated, so you can pass in e.g. multiple classes.

corvo: [CONDITIONS]
  -h             print this help and exit

  CONDITIONS:
    -t TITLE     hide the cursor on windows with TITLE as their window title (WM_NAME)
    -c CLASS     hide the cursor on windows with CLASS as their class value (first value in WM_CLASS)
    -i INSTANCE  hide the cursor on windows with INSTANCE as their class value (second value in WM_CLASS)
    -w WINDOW    hide the cursor on the window with the ID WINDOW

build

Dependencies

  • xcb
  • xcb-xfixes

Then just run make to build the binary in the project folder and make install to install it to the bin folder in the specified prefix (default /usr/local)

caveats

The focused window is tracked using the _NET_ACTIVE_WINDOW atom on the root window, if your window manager does not have this (it probably does) then it will not work.

Additionally, if you move the cursor from a hiding window to a window that wouldn't take focus/be put into _NET_ACTIVE_WINDOW (such as the root window, and possibly bars and such) then the cursor will stay hidden.

corvo's People

Contributors

banchouboo avatar

Watchers

 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.