aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-05-14 23:28:03 +0200
committerczjstmax <jstmaxlol@disroot.org>2026-05-14 23:28:03 +0200
commit1abab237ce428b1692004b761403aacab8baa35f (patch)
tree7e7638a034f367b4f8b0758c1622fa280f762626
parent73c5a2c25ad314f8db837bb260946cde13040488 (diff)
updates
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
-rw-r--r--cfg/i3/kurobar.sh14
-rwxr-xr-xthespeech14
2 files changed, 21 insertions, 7 deletions
diff --git a/cfg/i3/kurobar.sh b/cfg/i3/kurobar.sh
index 4a3e9be..aff86ee 100644
--- a/cfg/i3/kurobar.sh
+++ b/cfg/i3/kurobar.sh
@@ -16,11 +16,11 @@ while true; do
if [[ "$status" == "Not charging" ]]; then
charge_status="it's inside me.. but it's too much~~!"
elif [[ "$status" == "Charging" ]]; then
- charge_status="++ing~!"
+ charge_status="++ing.."
elif [[ "$status" == "Discharging" && "$bat" -lt 40 ]]; then
charge_status="++ me! low battery!"
elif [[ "$status" == "Discharging" ]]; then
- charge_status="--ing"
+ charge_status="--ing.."
else
charge_status="unknown status -> $status.."
fi
@@ -44,11 +44,11 @@ while true; do
pubip=$(cat ~/.config/i3/public_ip.txt)
# --- cpu usage ---
- #cpu_idle1=$(awk '/^cpu / {print $5}' /proc/stat)
- #cpu_total1=$(awk '/^cpu / {total=0; for(i=2;i<=NF;i++) total+=$i; print total}' /proc/stat)
- #cpu_idle2=$(awk '/^cpu / {print $5}' /proc/stat)
- #cpu_total2=$(awk '/^cpu / {total=0; for(i=2;i<=NF;i++) total+=$i; print total}' /proc/stat)
- #cpu=$((100 * ( (cpu_total2 - cpu_total1) - (cpu_idle2 - cpu_idle1) ) / (cpu_total2 - cpu_total1) ))
+ # cpu_idle1=$(awk '/^cpu / {print $5}' /proc/stat)
+ # cpu_total1=$(awk '/^cpu / {total=0; for(i=2;i<=NF;i++) total+=$i; print total}' /proc/stat)
+ # cpu_idle2=$(awk '/^cpu / {print $5}' /proc/stat)
+ # cpu_total2=$(awk '/^cpu / {total=0; for(i=2;i<=NF;i++) total+=$i; print total}' /proc/stat)
+ # cpu=$((100 * ( (cpu_total2 - cpu_total1) - (cpu_idle2 - cpu_idle1) ) / (cpu_total2 - cpu_total1) ))
# --- date/time ---
dt=$(date '+%Y年%m月%d日 %H時%M分%S秒')
diff --git a/thespeech b/thespeech
new file mode 100755
index 0000000..bd9946f
--- /dev/null
+++ b/thespeech
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+pygmentize -l bash -f terminal256 -O style=monokai /usr/bin/thespeech
+
+espeak-ng "
+Rise, and shine, Mr Freeman. Rise and shine.
+Not that I wish to imply you have been sleeping on the job.
+No one is more deserving of a rest.
+And all the effort in the world would have gone to waste until... well, let\'s just say your hour has come again.
+The right man in the wrong place, can make all the difference in the world.
+So, wake up, Mr Freeman.
+Wake up and smell the ashes.
+" -a 200 -p 1 -P 16 -k -s 60
+