this post was submitted on 25 Nov 2024
53 points (98.2% liked)

Linux

48344 readers
442 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Don't know if this is really the right place for this, but I can't imagine trying to do this on windows! Not saying it couldn't be done, but I wouldn't know where to start

I got a new laptop with a backlit RGB keyboard, but no capslock, numlock indicators. I figured I could solve that by just setting the backlight of the key if capslock is enabled. I got that working, but that's boring.

While I was doing that I realised that I was baaaasically working with a 20x6 LED display sooooo...

Behold! Playing snake on my laptop!

Source code is very specifically for my Kfocus M2 Gen 5, which I believe is just a branded Schenker KEY 17 Pro (M24)

Having said that, it could be adapted to other keyboards fairly easily:

https://gist.github.com/Kraiden/5393bc30f4c29d8b8dd51b4c21c0c829

top 3 comments
sorted by: hot top controversial new old
[–] smeg@feddit.uk 7 points 9 hours ago

Great work, and a great example of because I can!

[–] haerrii 5 points 10 hours ago

That's the stuff we need open source operating systems for, very nice!

[–] loaExMachina@sh.itjust.works 6 points 13 hours ago