Coder Social home page Coder Social logo

find-cursor's Introduction

Simple XLib program to highlight the cursor position. This is similar to the feature found in Windows XP (and possibly later?)

screenshot.gif

Installation

Compile it by typing make, install it with make install. There packages for some platforms as well.

You'll need to install some X11 header files on some systems; e.g. on Ubuntu/Debian: libx11-dev, libxcomposite-dev, libxdamage-dev, and libxrender-dev. For Fedora 36 you might need to install following: libXext-devel, libXdamage-devel, libXrender-devel, libXext-devel.

There is also a Docker container at klo2k/find-cursor if you want it. Note this is NOT maintained (or supported) by me. See #19.

Usage

See find-cursor -h to see some options for controlling the appearance.

Launching

You will want to map a key in your window manager to run find-cursor. You can also use xbindkeys, which should work with $any window manager.

I run it with xcape:

xcape -e 'Control_L=Escape;Shift_L=KP_Add'

When Left Shift is tapped a Keypad Add is sent; I configured my window manager to launch find-cursor with that.

I don't have a numpad on my keyboard; you can also use F13 or some other unused key.

You can use a little wrapper script if you want a "toggle" switch for when repeating forever:

#!/bin/sh
if pgrep find-cursor; then
    pkill find-cursor
else
    find-cursor -r0 &
fi

Compton

You may want to disable shadows if you use compton or some other composite manager; for example for compton start it with:

compton --shadow-exclude "class_g = 'find-cursor'"

Or, perhaps even better, disable it for all shaped windows:

compton --shadow-exclude 'bounding_shaped'

You can also put that in the compton config file. Other managers might have different options/flags.

find-cursor's People

Contributors

arp242 avatar maramon avatar schuellerf avatar kbulygin avatar mikewalrus avatar 0mp avatar qw3r3wq avatar maxice8 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.