Archive for May, 2020

Programming the Logitech G513 RGB Keyboard Lights in Linux with g810-led

📅 May 21, 2020
The Logitech G513 RGB Mechanical keyboard has earned its place as the best keyboard I have ever used.

The keys have the best tactile approach, the build quality is superb with the metal top, the wrist rest is durable and soft, the size is convenient, the LEDs are confined to the key letters only (no light bleeding), and it just works with Linux.

But did you know that you can program each LED key individually with Bash to Python to create your own effects?

Do you want two random colors to be spread across the keys upon boot? Would you like a Pac-Man effect that pretends a yellow Pac-Man moves around the keys like a maze? Do you have different lighting patterns that you would like to assign to each user on the same Linux system?

All of this and more is possible with a free Linux program called g810-led that you can use with scripts.

Read the rest of this entry »

, , ,

Leave a comment

Python 3: Process Command Line Arguments with argparse

📅 May 13, 2020
Python 3 provides a handy module, argparse, that makes it easy to get and parse command line arguments passed to your script.

If you ever found argument parsing to be a tedious extra, then argparse might be just what you were looking for to simplify the process and focus on your code.

Read the rest of this entry »

,

Leave a comment