.
Makefile 0000664 0000000 0000000 00000005375 15036736221 0012535 0 ustar 00root root 0000000 0000000 VERSION=1.5.1
VERSION_HEADER=src/version.h
BUILD_DIR = build
DEBUG_DIR = "${BUILD_DIR}/debug"
RELEASE_DIR = "${BUILD_DIR}/release"
PKG_DIR = pkg
BINNAME = xclicker
TARGET = build/debug/src/${BINNAME}
DESKFILE = assets/xclicker.desktop
debpkgdir="./${PKG_DIR}/deb/package"
appimgdir="${PKG_DIR}/AppImage/XClicker.AppDir"
ifeq ($(TARGET_ARCH),)
TARGET_ARCH := amd64
endif
.PHONY: build
build:
@if test -d "./${DEBUG_DIR}"; then echo "Build dir is already made"; else meson ${DEBUG_DIR}; fi
# Not "meson compile" since it doesn't work in workflow
ninja install -C ${DEBUG_DIR}
.PHONY: run
run:
./${TARGET}
.PHONY: all
all: build run
.PHONY: version
version:
@echo "// Do not edit this file, it is auto generated by the makefile" > ${VERSION_HEADER}
@echo "#ifndef __VERSION_H" >> ${VERSION_HEADER}
@echo "#define __VERSION_H" >> ${VERSION_HEADER}
@echo "static const char *XCLICKER_VERSION = \"v${VERSION}\";" >> ${VERSION_HEADER}
@echo "#endif" >> ${VERSION_HEADER}
.PHONY: release
release: version
@if test -d "./${RELEASE_DIR}"; then echo "Build dir is already made"; else meson ${RELEASE_DIR} --buildtype release; fi
ninja install -C ${RELEASE_DIR}
.PHONY: install
install: release
@sudo install -Dm 755 ./${RELEASE_DIR}/src/${BINNAME} /usr/bin/${BINNAME}
@sudo install -Dm 755 ./${DESKFILE} /usr/share/applications/xclicker.desktop
@sudo install -Dm 644 ./assets/icon.png /usr/share/pixmaps/${BINNAME}.png
@echo "Installed XClicker"
.PHONY: uninstall
uninstall:
@sudo rm /usr/bin/${BINNAME}
@sudo rm /usr/share/applications/xclicker.desktop
@sudo rm /usr/share/pixmaps/${BINNAME}.png
@echo "Uninstalled XClicker :("
.PHONY: deb
deb: release
@rm -rf ${debpkgdir}
@rm -f ${PKG_DIR}/deb/*.deb
@mkdir -p ${debpkgdir}
@install -Dm 644 ./${PKG_DIR}/deb/control ${debpkgdir}/DEBIAN/control
@sed -i 's/%VERSION%/${VERSION}/g' ${debpkgdir}/DEBIAN/control
@sed -i 's/%ARCH%/${TARGET_ARCH}/g' ${debpkgdir}/DEBIAN/control
@install -Dm 755 ./${RELEASE_DIR}/src/${BINNAME} ${debpkgdir}/usr/bin/${BINNAME}
@install -Dm 644 ./${DESKFILE} ${debpkgdir}/usr/share/applications/xclicker.desktop
@install -Dm 644 ./assets/icon.png ${debpkgdir}/usr/share/pixmaps/${BINNAME}.png
@dpkg-deb --build ${debpkgdir}
@dpkg-name ${PKG_DIR}/deb/package.deb -o
.PHONY: appimg
appimg: release
@rm -rf ${PKG_DIR}/AppImage/*.AppImage
@mkdir -p ${appimgdir}
@install -Dm 755 ./${RELEASE_DIR}/src/${BINNAME} ${appimgdir}/${BINNAME}
@install -Dm 755 ./${DESKFILE} ${appimgdir}/xclicker.desktop
@install -Dm 755 ./${PKG_DIR}/AppImage/AppRun ${appimgdir}/AppRun
@install -Dm 644 ./assets/icon.png ${appimgdir}/${BINNAME}.png
@cd ${PKG_DIR}/AppImage; appimagetool ./XClicker.AppDir; mv *.AppImage ${BINNAME}_${VERSION}_${TARGET_ARCH}.AppImage
.PHONY: clean
clean:
@$(RM) -rv ${BUILD_DIR}
README.md 0000664 0000000 0000000 00000005071 15036736221 0012345 0 ustar 00root root 0000000 0000000
---
Oh hey, I'm on Twitter too if you'd like to follow more about what I'm up to. Hopefully I'll see you there! 😊
https://twitter.com/robiot
## What is XClicker?
XClicker is an open-source, easy to use, feature-rich, **blazing fast** Autoclicker for linux desktops using x11.

*v1.4.0*
 [](https://xclicker.xyz/downloads)
## Main features
* Fairly simple layout;
* Safe mode, to protect from unwanted behaviour;
* Autoclick with a specified amount of time between each click;
* Choose mouse button [Left/Right/Middle];
* Choose click type [Single/Double/Hold];
* Repeat until stopped or repeat a given amount of times;
* Click on a specified location only;
* Randomize the click interval;
* Specify hold time per click;
* Click while holding hotkey down;
* Start / Stop with a custom hotkey;
### How much cps?
The highest I have got with it was around **750cps**, but that was still with 1 millisecond interval.\
With 0 millisecond interval, the focused application may freeze.
## Building
After cloning the repository, you only have to run this one command. The executable will be placed in **./build/release/src/xclicker**.
```
$ make release
```
## Installing
Check out the [Installation Guide](https://github.com/robiot/xclicker/wiki/Installation)
## All repositories
- XClicker: https://github.com/robiot/xclicker
- Web: https://github.com/robiot/xclicker-web
## Contributing
All contributions are welcome <3.
Check out the [Contibuting Guide](https://github.com/robiot/xclicker/wiki/Contibuting) to see how to setup your enviroment.
## License
XClicker is licensed under GPL-3.0 LICENSE.
Dependencies are licensed by their own.
assets/ 0000775 0000000 0000000 00000000000 15036736221 0012365 5 ustar 00root root 0000000 0000000 assets/README.md 0000664 0000000 0000000 00000000065 15036736221 0013645 0 ustar 00root root 0000000 0000000 In this folder there are mostly assets for packages.
assets/icon.png 0000664 0000000 0000000 00000007624 15036736221 0014034 0 ustar 00root root 0000000 0000000 PNG
IHDR \rf pHYs `a FIDATxݿs-BVB2 0ewkIti@jniČ\a٥HI'2DleNss{~<3Iat} שwfxI\0,c|WZD1f^g+Mӧ]N$Y6,FD -Lt32 $_?_$1inV
@2,pIƘ HdGLgFd I