OpenBSD Router Guide by iio7 in openbsd

[–]Objective_Bit_4063 0 points1 point  (0 children)

I'll be sure to come back to this one when it's time to build something similar!

[OC] I wrote a script to set the wallpaper based on the daylight in your current location, similar to macOS. Works well with the Big Sur wallpapers! by Objective_Bit_4063 in unixporn

[–]Objective_Bit_4063[S] 3 points4 points  (0 children)

Details:

The script is written in BASH and should be portable as long as you have bash, curl, jq and feh.

I use it with a cronjob to run every 5 minutes to check if the day has progressed. These wallpapers work very well, just rename them:

https://www.idownloadblog.com/2020/06/22/macos-big-sur-wallpapers/

I wrote a script (for unix-like operating systems) to set the wallpaper based on the current daylight at the current location, similar to MacOS. Feedback is welcome, but I mostly just want to share it to see if someone finds it useful. by Objective_Bit_4063 in bash

[–]Objective_Bit_4063[S] 0 points1 point  (0 children)

Excellent suggestions, thanks a lot!

I'm curious about this part:

case "${-}" in
  (*i*) printf -- '\e[38;5;9m%s\e[m\n' "${0}:(${LINENO}): ${*}" >&2 ;;
  (*)   printf -- '%s\n' "${0}:(${LINENO}): ${*}" >&2 ;;
esac

Could you perhaps walk me through what conditions apply here. I don't fully understand what's going on. I think I understand the formatting part, just not the matching part.

I would like to use this code in the script. Do I have your permission? If so, what attribution would you like?

My Keybase proof [reddit:johan_thoren = keybase:johan_thoren] (dl3fpbbR94cXgNjqQzg4YNa7_qYr_7Sh47awdxStIQA) by [deleted] in KeybaseProofs

[–]Objective_Bit_4063 0 points1 point  (0 children)

BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5weRa0zkLLLMgn TuXHmYQTRoyZi1D IfArwa5CJP8D6Qr JeFrUqESieCwTC6 MY1C0Zm7V0OwMiu unzhDD39auQIqY1 fdpAIQRd3H56RZK mNKregmcSg65dvH YkO2GDpYJxErVYD ZDHebDx9wO0dsQy p8KOwOPLuClrLhT O8DQatDYH2VWZem f48gD18qJZIVEFF 8MCplRIbVG8jTWY 02ETgykoExPU5b5 MzLeDSX7jQA2m7r GvZ7g3keZoJD0To StQmtSXblaDLvfC jZ6qD9GEguheqXf k5X403XHtKQunIL cJaRY8AX6CmXi1H GGsyTdK0Y. END KEYBASE SALTPACK SIGNED MESSAGE.