Skip to content

inserti550/gmacrod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmacrod

Platform C++ License

This project aims to become a replacement for g15macro. g15macro is deprecated and does not support Wayland directly. Even with XWayland, it doesn't work correctly due to the use of X11-specific solutions like XTest. gmacrod works with both Wayland and X11.

Features

  • Works on Wayland and X11
  • Records and plays back macros on G1–G18 keys
  • Virtual keyboard via /dev/uinput low-level input emulation
  • Profile support with JSON config
  • LCD display support (G15 128×43)
  • M-key switching
  • executing bash
  • Cycles! Repetitions and delays

Dependencies

Usage

You can run this program as root, but you can also run it as a user. you need to give your user the input group to gain access to /dev/uinput

# Run with default config (~/.config/gmacrod)
gmacrod
 
# Run with custom config directory
gmacrod -c /home/user/.config/gmacrod/
 
# Help
gmacrod --help

# to add user into input group
usermod -a -G input $USER

You can use IPC to controll gmacrod

# if u need reload profile list
echo "reload" | sudo tee /tmp/gmacrod.pipe > /dev/null

# if u need reload config
echo "reload_config" | sudo tee /tmp/gmacrod.pipe > /dev/null

# if u need resave config
echo "resave_config" | sudo tee /tmp/gmacrod.pipe > /dev/null

# if u need load config
echo "load:profilename.json" | sudo tee /tmp/gmacrod.pipe > /dev/null
# While load doesn't check for the presence of a config yet, you can create configs using it

About

gmacrod is a daemon for g15 that attempts to replace g15macro.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages