diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-08-14 10:43:27 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-08-14 10:43:27 -0500 |
commit | 418cf74ec16029d927271fbc255c061c2ed1ec4d (patch) | |
tree | d904b649ecc305f2e8551c360492cc2722a6a912 /macos/.config/sketchybar/plugins/cpu.org | |
parent | aeb8600bf9480b73b025133e12fe25b19498c97d (diff) |
add sketchybar config
Diffstat (limited to 'macos/.config/sketchybar/plugins/cpu.org')
-rw-r--r-- | macos/.config/sketchybar/plugins/cpu.org | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/macos/.config/sketchybar/plugins/cpu.org b/macos/.config/sketchybar/plugins/cpu.org new file mode 100644 index 0000000..199d89b --- /dev/null +++ b/macos/.config/sketchybar/plugins/cpu.org @@ -0,0 +1,7 @@ +#+title: SketchyBar CPU Plugin + +Get the CPU percentage and display it. +#+begin_src sh :tangle ~/.config/sketchybar/plugins/cpu.sh :mkdirp yes :tangle-mode o755 + #!/bin/sh + sketchybar --set "$NAME" icon='' label="$(top -l 2 | grep -E "^CPU" | tail -1 | awk '{ print $3 + $5"%" }')" +#+end_src |