Skip to content

shaggyrogers/X11Overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This is a very basic library for drawing text and simple shapes over other windows using a transparent overlay window. It supports Linux distributions using X11 only. This has been tested on Ubuntu 24.04 with Gnome/Mutter (use a "Ubuntu on Xorg" session)

I originally used this as part of cheat software for the game Rust. See my post here for information on implementing 3D projection in software. This is now part of my external aimbot project.

Dependencies

  • Cairo
  • Xlib
    • libXfixes
    • libXcomposite

For Ubuntu 17.10:

sudo apt-get update; sudo apt-get install -y libcairo2 libcairo2-dev libcairo2-doc libx11-6 libx11-dev libx11-doc libxfixes3 libxfixes-dev libxcomposite1 libxcomposite-dev

Compilation

git clone https://github.com/shaggyrogers/X11Overlay.git
cd X11Overlay/
make
  • "make" will build the library
  • "make test" will build the test program (main.cpp)
  • "make python" will build the python interface (overlay.so)

Usage

See python example script

Issues

  • Does not update target window position
  • Overlay window might flicker
  • Misc. minor bugs
    • Colors are incorrectly reset by overlapping elements
    • Unfilled circles are incorrectly drawn with a radial line

TODO

  • Fix bugs
  • Cleanup/refactor
  • Add tests

License

MIT - see LICENSE.md

About

Basic overlay library for X11.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors