My first open source app to set keyboard backlight

Written by
reddit
Link to Post

https://www.reddit.com/r/golang/comments/bo3nfl/my_first_open_source_app_to_set_keyboard_backlight/ by 

I’ve been writing simple go programs for a while, but usually they were just simple quick-and-dirty programs. I’ve been looking for a way to turn off the keyboard backlight after some time of idleness but couldn’t find anything, so it seemed like a good opportunity to create a proper open-source project so I wrote up skbl.

https://github.com/Shadowbeetle/skbl

I would be grateful if some of you could give me some feedback on it.

Currently I have two issues (I know of):

  1. When I run go test -race I get a lot of data races that I cannot make sense of on my own.
  2. To make it possible for the user to have their config in ~/.skbl it needs to be run as their user, but to read the input files, the user needs to be part of the input group. This way any program ran by the user can read all inputs globally which is definitely not good.

I’d highly appreciate some ideas on how to rectify the program.

submitted by /u/shadowbeetle
[link] [comments]

Article Tags:
· ·
Article Categories:
reddit

Leave a Reply