- Notifications
You must be signed in to change notification settings - Fork33
Highlight the cursor position in X11
License
arp242/find-cursor
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Simple XLib program to highlight the cursor position. This is similar to thefeature found in Windows XP (and possibly later?)
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.
Seefind-cursor -h
to see some options for controlling the appearance.
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
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