Skip to content

Instantly share code, notes, and snippets.

@cornernote
Last active January 15, 2022 17:18
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cornernote/81affe26bdb15b7c49f4cceaae2f703f to your computer and use it in GitHub Desktop.
Save cornernote/81affe26bdb15b7c49f4cceaae2f703f to your computer and use it in GitHub Desktop.
Logitech G105 Keyboard - Ubuntu 18.04

Logitech G105 Keyboard - Ubuntu 18.04

Sidewinderd: https://github.com/tolga9009/sidewinderd

Setup

Download:

sudo apt install libconfig++-dev libtinyxml2-dev libudev-dev
git clone https://github.com/tolga9009/sidewinderd.git

Build:

mkdir build
cd build
cmake ..
make
sudo make install

Config /etc/sidewinderd.conf:

user = "cornernote";
capture_delays = false;

Start:

sudo systemctl enable sidewinderd.service
sudo systemctl start sidewinderd.service

Record macros

The macro keys are fully programmable, but there is no default event. You can add functions to them, by recording macros or key combinations:

  • Choose a profile. The profile LED on the device will show you, which profile is active.
  • Press record key. The record LED will light up.
  • Now, choose and press a macro key. On some devices, the record LED will begin to blink. You're now in macro mode. Please note, that existing macros may get overwritten.
  • Everything you type on the keyboard will get recorded. You can either record a single key combination or a long series of keypresses. Please note, that keypresses still send events to your operating system and your programs.
  • When done, press the record key again. This will stop recording and save the macro.
  • You've now created a macro. Use it by setting the chosen profile and pressing the chosen macro key.

Edit Macros

The XML files can be edited by hand, for example if you wish to change or remove the recorded delays.

sudo nano /root/.local/share/sidewinderd/profile_1/s1.xml (button M1/G1)
@cornernote
Copy link
Author

@0815fips, glad it helped! I moved on to a G815 with RGB LED keys. I still use sidewinderd, but I also needed G815-led. I still have my G105 too, and still love it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment