Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Highlight the cursor position in X11

License

NotificationsYou must be signed in to change notification settings

arp242/find-cursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

screenshot.gif

Installation

Compile it by typingmake, install it withmake install. Therepackages for some platforms as well.

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

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

Usage

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

Launching

You will want to map a key in your window manager to runfind-cursor. You canalso usexbindkeys, which should work with$any window manager.

I run it withxcape:

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

WhenLeft Shift is tapped aKeypad Add is sent; I configured my windowmanager to launchfind-cursor with that.

I don't have a numpad on my keyboard; you can also useF13 or some otherunused key.

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

#!/bin/shif pgrep find-cursor; then    pkill find-cursorelse    find-cursor -r0 &fi

Compton

You may want to disable shadows if you use compton or some other compositemanager; 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 havedifferent options/flags.

About

Highlight the cursor position in X11

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

[8]ページ先頭

©2009-2025 Movatter.jp