commit 40229f6cf5a708a3690509062692e3b12f785a2f
parent adb397d0e38e75d9485b8068e247a133534c0108
Author: noodle <noodle@pastanoggin.com>
Date: Thu, 5 Jun 2025 17:41:39 +0300
convert this repo into an openbsd password suite script collection
moved funstats to another repo, changed description in README, and updated the
email address in LICENSE to reflect my new email address
Diffstat:
3 files changed, 2 insertions(+), 34 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2025 Alex <boredpasta@tutanota.com>
+Copyright (c) 2025 Alex <noodle@pastanoggin.com>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
diff --git a/README b/README
@@ -1 +1 @@
-some funny scripts
+openbsd password suite with no dependencies outside base
diff --git a/funstats b/funstats
@@ -1,32 +0,0 @@
-#!/bin/sh
-# some cool stats for the tmux bar on openbsd
-
-vol () {
- if [ "$(sndioctl -n output.mute)" -eq 1 ]; then
- echo "muted"
- else
- sndioctl -n output.level | awk '{ printf "%d%%\n", int($0*100) }'
- fi
-}
-
-mic () {
- if [ "$(sysctl -n kern.audio.record)" -eq 1 ] || [ "$(sndioctl -n input.mute)" -eq 1 ]; then
- printf "muted"
- else
- sndioctl -n input.level | awk '{ printf "%d%%\n", int($0*100) }'
- fi
-}
-
-bat () {
- apm -l
-}
-
-lidaction () {
- [ "$(sysctl -n machdep.lidaction)" -eq 1 ] && printf "on" || printf "off"
-}
-
-temp () {
- sysctl -n hw.sensors.cpu0.temp0 | awk '{ print $1, "C" }'
-}
-
-echo "|mic: $(mic)|vol: $(vol)|bat: $(bat)%|temp: $(temp)|lid: $(lidaction)|"