summaryrefslogtreecommitdiff
path: root/ar/.local/bin/statusbar/sb-memory
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-03-24 11:08:18 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-03-24 11:08:18 +0900
commit7ad735138ce0160e68c3cb0e8be013e778400cf8 (patch)
tree616ca99625b21185c7be3d4f0cab4a11764283f5 /ar/.local/bin/statusbar/sb-memory
parent5dd58abffb4ca07cc76face5175891328a9b55f4 (diff)
modified claude/settings.json, deleted statusbar/sb-cpu, deleted statusbar/sb-cpubars, deleted statusbar/sb-memory, created statusbar/sb-system
Diffstat (limited to 'ar/.local/bin/statusbar/sb-memory')
-rwxr-xr-xar/.local/bin/statusbar/sb-memory25
1 files changed, 0 insertions, 25 deletions
diff --git a/ar/.local/bin/statusbar/sb-memory b/ar/.local/bin/statusbar/sb-memory
deleted file mode 100755
index 3b71f3c..0000000
--- a/ar/.local/bin/statusbar/sb-memory
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-case $BLOCK_BUTTON in
-1) notify-send "šŸ Memory hogs" "$(ps axch -o cmd,%mem | awk '{cmd[$1]+=$2} END {for (i in cmd) print i, cmd[i]}' | sort -nrk2 | head)" ;;
-2) setsid -f "$TERMINAL" -e htop ;;
-3) notify-send "šŸ Memory module" "\- Shows Memory temperature and used/total
-- Left click to show memory hogs
-- Middle click to open htop
-šŸŒ”ļø: Memory temperature" ;;
-6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
-esac
-
-width=$(xrandr | grep "\*" | awk '{print $1}' | sed 's/x[0-9]*//g' | head -n1)
-nvme_temp=$(sensors 2>/dev/null |
- awk '/Composite:/ {gsub(/[+°C]/,"",$2); print $2; exit}')
-
-if [ -n "$width" ] && [ "$width" -eq "$width" ] 2>/dev/null; then
- if [ "$width" -lt 1920 ]; then
- free --mebi | sed -n '2{p;q}' |
- awk -v t="$nvme_temp" '{printf "🌔%s° šŸ%d%%\n", t, ($3/$2)*100+0.5}'
- else
- free --mebi | sed -n '2{p;q}' |
- awk -v t="$nvme_temp" '{printf "🌔%s° šŸ%dGB/%dGB", t, $3/1000+0.5, $2/1000+0.5}'
- fi
-fi