Skip to content

francjerez/flag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flag

flags

Flag is a very small Python 3.x module managed by launchd, tested on (and designed for) macOS Big Sur.

Details

Flag is intended to help you control a single USB connected Luxafor Flag device from the Do Not Disturb switch you can find both in the Control Center and, when enabled from the System Preferences, in the Menu Bar:

menubar

For further efficiency, you may want to create a keyboard shorcut; like this one:

keyboard

Installation

Flag requires the HID API to talk with your Luxafor device, something you can easily achieve with just pip:

$ sudo -H pip3 install hidapi

To deploy the three components of this repository (the user agent, the Python script and the logout hook):

$ sudo -H sh ./install.sh

The installer automatically loads the LaunchAgent for you, so everything should be working by now.

One more thing

Enjoy. :)