-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: eui action: blob revision: path_from: status revision_from: refs/heads/trunk: path_to: revision_to:
/ status
refs/heads/trunk:/status #!/usr/bin/env bash export DBUS_SESSION_BUS_ADDRESS=unix:path=/var/run/user/1000/bus ###### BAIL IF LOAD IS TOO HIGH FOR COMFORT if [ "$1" != '-f' ];then load=$(cat /proc/loadavg | head -n1 | cut '-d ' -f1 | cut -d. -f1) if [ "$load" -ge "5" ];then printf "load too high: %s\n" "$load" exit 0 fi fi ###### MUSIC INIT.PID STATE if [ ! -f /home/epoch/.local/run/music/init.pid ];then printf "mig | " fi ###### NOWPLAYING #FILE=/home/epoch/.local/var/cache/music/nowplaying.txt #if [ -s "$FILE" ];then # s=$[$(date +%s) % ($(head -n1 $FILE | wc -c | tr -cd '[0-9]') + 5) + 1] # line=$(head -n1 $FILE) # printf "%s .... %s" "$line" "$line" | cut -b$s-$[$s+40] | tr -d '\n' # #printf "%s | " "$(cat /home/epoch/.local/var/cache/music/nowplaying.txt | head -n1)" #else # printf "nowplaying.txt missing" #fi #if s6-svstat "${PREFIX}/x11services/lemonbar" | grep "^up " >/dev/null 2>&1;then # printf " | TODO: onair and mail buttons | " #else ###### SCREEN RECORDING STATE #[ "$(lsof -Fcp "/home/epoch/Videos/screenrecord/$(ls -rt /home/epoch/Videos/screenrecord | tail -n1)" 2>/dev/null | paste -d$'\t' - - - | grep 'ffmpeg' | cut -f1 | cut -b2-)" ] && printf " | RECORDING SCREEN" ###### BROADCASTING STATE printf " | %s | " "$(music-isonair >&1 >/dev/null && echo "ON AIR" || echo "off air")" ###### MAIL mail -e && printf "✉️" printf "📧📧2 | " ###### KEYRING STATE echo -n "$(/home/epoch/.local/bin/secret-check >/dev/null && echo 'locked' || echo 'unlocked' $(logger unlocked) )" '| ' ###### DATE #TZ=America/Chicago date "+%a %m/%d ($(TZ=UTC date +%H))%H:%M:%S (%s)" | tr -d '\n' #printf "@%s" "$(TZ=UTC-1 date "+scale=2;((%H*3600)+(%M*60)+%S) / 86.4" | bc)" #printf "%s" "$(beatai)" #TZ=epoch date | tr -d '\n' printf "%s | " "$(TZ=epoch date --rfc-3339=seconds | cut -d- -f1-3)" #printf "%s" "$(TZ=UTC-12 date '+scale=4;((%H*60*60)+(%M*60)+%S)/8640' | bc | sed 's/\(..\)\(..\)$/\1.\2/')" #echo -n ' | ' #echo -n 'vol:' #/usr/bin/amixer | tr -d '\n' #amixer -c 0 | grep 'Mono: Playback ' | head -n1 | tr '[]' '__' | cut -d_ -f2,6 | tr -d '\n' #echo -n ' | ' #echo -n 'mem left/swap used: ' #free -m | grep ^Mem | tr -s ' ' | cut '-d ' -f4 | tr '\n' '/' #free -m | grep ^Swap | tr -s ' ' | cut '-d ' -f3 | tr -d '\n' #echo -n ' | ' #cat /proc/loadavg | cut '-d ' -f1-3 | sed 's/[0-9] /:/g;s/[0-9]$//g' | tr -d '\n' #echo -n ' | ' #cat /sys/class/hwmon/hwmon*/temp1_input | cut -b1-2 | tr '\n' ' ' echo -n ' | ' [ -e /home/epoch/.local/run/log2notify_low_clog ] && printf "low-%s" "$(log2notify-count low)" || echo -n 'hush-low' echo -n '/' [ -e /home/epoch/.local/run/log2notify_normal_clog ] && printf "normal-%s" "$(log2notify-count normal)" || echo -n 'hush-normal' echo -n '/' [ -e /home/epoch/.local/run/log2notify_critical_clog ] && printf "critical-%s" "$(log2notify-count critical)" || echo -n 'hush-critical' #sensors -j | jq '.[].temp1.temp1_input' | cut -d. -f1 | tr '\n' ' ' #echo -n '| ' #echo -n "$DISPLAY" #echo -n ' | ping: ' #(ping -W 1 -c 1 192.168.0.1 || beep) | tail -n1 | cut '-d ' -f 4 | cut -d/ -f1 | tr -d '\n' #echo disabled echo -n ' | ' #[ -e ~/.local/run/fediverse_hush ] && echo -n 'unhush-fediverse' || echo -n 'hush-fediverse' echo
-- Response ended
-- Page fetched on Sun Jun 2 14:42:16 2024