From 865cfdb0293f85c28d1ee54d76a11cc798bb7440 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 16 Dec 2018 16:50:42 -0500 Subject: Great Renaming, i3blocks officially changed --- .scripts/statusbar/cpu | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .scripts/statusbar/cpu (limited to '.scripts/statusbar/cpu') diff --git a/.scripts/statusbar/cpu b/.scripts/statusbar/cpu new file mode 100755 index 0000000..fc9d617 --- /dev/null +++ b/.scripts/statusbar/cpu @@ -0,0 +1,12 @@ +#!/bin/sh + +case $BLOCK_BUTTON in + 1) notify-send "🖥 CPU hogs: +$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;; + 3) notify-send "🖥 CPU module: +- Shows CPU temperature. +- Click to show intensive processes. +- % is of single core." ;; +esac + +sensors | awk '/Core 0/ {print $3}' -- cgit v1.3.1