commit 40229f6cf5a708a3690509062692e3b12f785a2f from: noodle date: Thu Jun 5 15:13:41 2025 UTC 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 commit - adb397d0e38e75d9485b8068e247a133534c0108 commit + 40229f6cf5a708a3690509062692e3b12f785a2f blob - 61d99d8d5296ccd7578ba4601a91ecf80ba43f9c blob + 26d4d365c07cbb199e01c4cd311e9bf36a38ef0f --- LICENSE +++ LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2025 Alex +Copyright (c) 2025 Alex Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above blob - d9d96ae67ecf4ca69fdd069ab8be86f4cb195764 blob + b4a3e561090fcda9b75d70f4cbbc7e3e1d467173 --- README +++ README @@ -1 +1 @@ -some funny scripts +openbsd password suite with no dependencies outside base blob - 7fcfb992a1136e822a47a2c083dd3c07c1ef54ff (mode 755) blob + /dev/null --- funstats +++ /dev/null @@ -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)|"