From: Zachary Vance Date: Tue, 26 Nov 2024 02:54:22 +0000 (-0500) Subject: Go screensaver X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=110e6186244cea435899f268e3307d7abfefc7a6;p=blog.git Go screensaver --- diff --git a/images/go-screensaver-tv.jpg b/images/go-screensaver-tv.jpg new file mode 100644 index 0000000..1c98dbd Binary files /dev/null and b/images/go-screensaver-tv.jpg differ diff --git a/images/go-screensaver.png b/images/go-screensaver.png new file mode 100644 index 0000000..332c8ee Binary files /dev/null and b/images/go-screensaver.png differ diff --git a/posts/go-screensaver.md b/posts/go-screensaver.md new file mode 100644 index 0000000..97c2bdd --- /dev/null +++ b/posts/go-screensaver.md @@ -0,0 +1,25 @@ +--- +author: admin +categories: +- Non-Technical +date: 2024-11-25 +tags: +- hack-a-day +- go +- board games +title: 'Hack-a-Day, Day 25: Go Screensaver' +--- + +Today I made a Go "screensaver". + +[![caption: go game in progress](go-screensaver.png)](https://za3k.github.io/go/screensaver.html) + +You can see it [online here](https://za3k.github.io/go/screensaver.html). The source code is [on github](https://github.com/za3k/go). + +Games are taken from OGS, and played real-time. Provided are a selection of 1000 random games from OGS, a popular Go server. Games play in real time, the same as when they were originally played. + +I made this to have a screensaver for my mantel. + +![caption: go games play above my fireplace](go-screensaver-tv.jpg) + +Hope you enjoy. diff --git a/posts/power-beeps.md b/posts/power-beeps.md new file mode 100644 index 0000000..363a2e5 --- /dev/null +++ b/posts/power-beeps.md @@ -0,0 +1,26 @@ +--- +author: admin +categories: +- Technical +date: 2024-11-25 +tags: +- software +title: 'Power Beeps' +--- + +One feature I really liked about older ThinkPad models was that when you plugged in power, it would give a little chirpy beep. Same when you disconnected it. + +The downside to system beeping is that it gets really annoying. I don't want a failed tab completion to go "beep" aloud, especially when I'm in public. + +As a result, I really, really aggressively turn off all kinds of system bells, etc. Sadly, I get no beeps either. + +Today I wrote a little python script to monitor power beep how I want. It plays it through my computer speakers (unmuting them if needed, just long enough to beep). It works for me on both ALSA and pulseaudio with an ALSA bridge (I have a few computers on each). + +My default settings are: + +- Two falling tones when power is unplugged +- Two rising tones when power is plugged back in +- Two warning beeps when the lowest battery reaches 10% (my laptop has two) +- Three warning beeps when the lowest battery reaches 5%. + +Source code is [on github](https://github.com/za3k/short-programs#power-beeps) if you want to use it too. To change the thresholds or beeps, you'd have to change the code. No fancy configs, sorry!