From 6e4a15d79352ca2707a3b0d81d158228a7d14704 Mon Sep 17 00:00:00 2001 From: 0scar Date: Thu, 3 Jun 2021 23:33:31 +0200 Subject: Add/move statusbar scripts --- .scripts/cpuinfo | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 .scripts/cpuinfo (limited to '.scripts/cpuinfo') diff --git a/.scripts/cpuinfo b/.scripts/cpuinfo deleted file mode 100755 index f46121b..0000000 --- a/.scripts/cpuinfo +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env sh -set -e - -case $BLOCK_BUTTON in - 1) notify-send --urgency=low \ - "Process status" \ - "$(ps -eo pid,pcpu,size,comm \ - | sort -rnk 3 \ - | awk '{printf "% 8s% 8s% 8s ", $1, $2, $3; - $1="";$2="";$3=""; - print $0; c++} - c>10 {exit}')" - ;; - 3) notify-send --urgency=low \ - "Process status" \ - "$(ps -eo pid,pcpu,size,cmd \ - | sort -rnk 3 \ - | cut -b -45 \ - | awk '{printf "% 8s% 8s% 8s ", $1, $2, $3; - $1="";$2="";$3=""; - print $0; c++} - c>10 {exit}')" - ;; -esac - -# Load -sed -Ee 's/^([0-9]+\.[0-9]+) .*/[\1  /g' /proc/loadavg | tr -d '\n' - -# Thermals -awk '{s+=$1}END{printf "%.1f°]", s / (1000*NR)}' /sys/class/thermal/thermal_zone*/temp -- cgit v1.3