diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 01:38:59 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 01:38:59 -0400 |
| commit | 64b8f085636776e4ab1dad091711a3e8a22a8076 (patch) | |
| tree | cee1e98c5a8406bb1114f4e61ad89977008067ef /.local/bin/statusbar/cpu | |
| parent | 6491129dbb654e248df75f289ccf37a82cfab1f2 (diff) | |
| download | eibhear-64b8f085636776e4ab1dad091711a3e8a22a8076.tar.gz eibhear-64b8f085636776e4ab1dad091711a3e8a22a8076.tar.zst eibhear-64b8f085636776e4ab1dad091711a3e8a22a8076.zip | |
statusbar tweaks/updates for dwmblocks
Diffstat (limited to '.local/bin/statusbar/cpu')
| -rwxr-xr-x | .local/bin/statusbar/cpu | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/statusbar/cpu b/.local/bin/statusbar/cpu index 5b5528e..bd0c77a 100755 --- a/.local/bin/statusbar/cpu +++ b/.local/bin/statusbar/cpu @@ -1,10 +1,11 @@ #!/bin/sh case $BLOCK_BUTTON in - 1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;; + 1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)\\n(100% per core)" ;; + 2) setsid "$TERMINAL" -e htop & ;; 3) notify-send "🖥 CPU module " "\- Shows CPU temperature. - Click to show intensive processes. -- % is of single core." ;; +- Middle click to open htop." ;; esac sensors | awk '/Core 0/ {print "🌡", $3}' |
