Change The LED’s On A Logitech G Series Mouse In Linux


Change The LED’s On A Logitech G Series Mouse In Linux

This is one method to configure the lights on a Logitech G Series mouse. Not all mice may be supported and your mileage may vary. This worked for me on a Logitech G300s mouse to change the color of the lights and set sensitivity and resolution.

Install Piper

We’ll install Piper to get what we need. This program has a GUI, which is nice and quick, and it allows to set sensitivity, resolution, button functions and light colors.

Open a terminal.

Next are commands to install Piper for some common linux distributions.

Arch Linux

Open “pacman.conf” in a text editor, here nano:

sudo nano -w /etc/pacman.conf

Look for “Community” in the file and remove the # sign in front of it, and the lines directly below it.

Save the changes to the file.

Install Piper by running this command:

sudo pacman -Syy piper


Since Fedora 29, install Piper by running this command:

sudo dnf install piper


For OpenSUSE Leap 15.1, and OpenSUSE Tumbleweed, install Piper by running this command:

sudo zypper install piper


Piper isn’t in the repositories for these popular distributions. Go to the “Flatpak” installation instructions below for these systems.


Enable the Flatpak runtime on your system. Run this command:

flatpak remote-add –if-not-exists flathub

Install Piper by running this command:

flatpak install flathub org.freedesktop.Piper

Configure The Logitech G Series Mouse

Ensure your Logitech G series mouse is plugged into your system. Open up the Piper program.

Inside of the Piper program, as we’re here and it doesn’t take long, browse all the tabs and configure to your liking.

Piper 1

The first tab “Resolutions” allows to set sensitivity and resolutions. Click on it to go there. Select what you want or adjust with a slider to your liking.

Piper 2

The second tab “Buttons” allows to configure what each buttons does. Click on it to go there. Click a gear icon to set the indicated button to you liking.

Piper 3

The third tab “LEDs” allows to configure the lights. Click on it to go there. Look at the diagram that shows the different LED options available to change, and click the gear icon to set it. Here there is only one LED available to set. Yours may be different. A color menu will pop up.

Piper 4

In the color menu, there are different menus according to your mouse. “Solid”, “Cycle”, “Breathing”, and “Off”. Click on the mode that you want. Select the color you prefer or set a custom color by clicking the plus sign in the bottom left corner. Click on the “Apply” button to confirm your selection. Click on the “Apply” button in Piper’s main window to confirm your configuration.

Close the Piper program.

Your LED’s color should be set correctly now. If it isn’t, unplug and replug the mouse. Retry configuring via Piper.

User Agreement

Welcome to Modern Samurai.

An important part of establishing a contract is meeting of the minds. Where many websites hide their user agreement (a.k.a. terms of use, terms of service) at the bottom of their pages, we prefer to be upfront and honest about what you’re getting into. Please download our User Agreement and review it. If you agree, click “Agree” to continue to this Site. If you do not agree, click “Decline” to move away from this Site.