BatMon

A simple battery monitor tool that can notify you on battery status changes for FreeBSD.
Inspired by but in no way similar to batsignal - inspiring the basic function only. Written in pure Nim.

Requirements

Run Requirements

  • apm
  • notify-send

Build Requirements

  • nim
  • nimble

Installation

To install into your .nimble/bin directory

git clone https://codeberg.org/pswilde/batmon && cd batmon
nimble install

Running

# To run the daemon server notifier, just run:
batmon -d

# To run once and just show battery level, run:
batmon -o

Using

When importing Batmon as a module you have access to the get_battery_status() procedure which will return a Battery object you can use elsewhere.

Battery Type

type 
  Battery* = object
    status*: Status
    charge*: float
  Status* = enum
    High,
    Low,
    Critical,
    Charging,
    Unknown

Also, you have access to the notification handler module, where you can build and send your own notifications:

var n = newNotification("Title", "Body", urgency = Normal , timeout = 5000)
discard n.send()

TootInstall

TootInstall Concept

Status of this Memo

This memo defines a conceptual protocol for software build and install scripts for varying platforms published via Fediverse (ActivityPub i.e Mastodon, et al) posts.

Read more  ↩︎

Wholesome Errors

Your Friendly Error Code Index Inspirational instructions for dealing with unhelpful error codes

ERROR -41: Failure!

Wouldn’t it be great if there was something to tell you what to do about this error?! Wouldn’t it be great if it said

ERROR -41: Sit by a lake

instead?

Gemini.css

Gemini.css is an almost classless CSS style for making Gemini-like HTML pages.

For a Gemini.css demonstration, go to geminicss.paulwilde.uk.

Nemini

'/nɛmɪnaɪ/' Nem-in-eye

A simple Gemini server

Nemini is a simple Gemini server with static file serving, virtual host and alias support. "Simple" in the way it is, hopefully, simple to configure and use with minimal knowledge of web servers in general.

Read more  ↩︎

AI Search

This is a story all about how
Your query got twist-turned upside down
And I'd like to show an answer just sit right there
It might not be fully accurate but I don't care

Why I have turned off my BirdsiteLIVE instance

Hello. How are you? I am fine.

You may know me from a few places, but likely on the Fediverse as the person that maintains a BirdsiteLIVE instance with the url birdsite.wilde.cloud.

Read more  ↩︎

SQL Haiku

SELECT haiku FROM
tableHaikus WHERE LEFT(name,
3) LIKE 'SQL';

Fortieth

'Twas the morning after the fortieth
And all through the house
Not a creature was stirring
Except the one making the coffee and Alkaseltzer

'Twas the morning after the morning after the fortieth
And all through the house
The creatures were starting to stir but generally still uncomfortable and underperforming

'Twas the morning after the morning after the morning after the fortieth
And all through the house
The creatures were stirring
Even the mouse!
It scurried up the staircase
Squeaking the old well known phrase
"Warning! Duration of hangover is proportionate to age!"

wm_tools

A selection of information output tools for dmenu

These are a selection of independant tools for displaying various information about system status in dmenu. Some of them i.e. volume have options (up, down, mute...) which are selectable options in dmenu.

Read more  ↩︎