Skip to content

Instantly share code, notes, and snippets.

@ExperiBass
Created August 22, 2019 16:32
Show Gist options
  • Save ExperiBass/30d2115d9d201d49f69c177e5e8989d9 to your computer and use it in GitHub Desktop.
Save ExperiBass/30d2115d9d201d49f69c177e5e8989d9 to your computer and use it in GitHub Desktop.
sparklines:
- title: CPU usage
position: [[0, 0], [40, 24]]
rate-ms: 1000
scale: 0
sample: ps -A -o %cpu | awk '{s+=$1} END {print s}'
- title: Free memory
position: [[40, 0], [40, 24]]
rate-ms: 1000
scale: 2
sample: vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages\s+([^:]+)[^\d]+(\d+)/ and printf("%-16s % 16.2f Mi\n", "$1:", $2 * $size / 1048576);' | grep 'free:' | awk '{print $2}'
textboxes:
- title: CPU Temp
position: [[0, 24], [20, 7]]
rate-ms: 1000
sample: istats cpu --value
- title: Core 1 Temp
position: [[20, 24], [20, 7]] # [[x, y], [w, h]]
rate-ms: 1000
sample: istats extra TC1C --value
- title: Core 2 Temp
position: [[40, 24], [20, 7]] # [[x, y], [w, h]]
rate-ms: 1000
sample: istats extra TC2C --value
- title: Fan 1 speed
position: [[60, 24], [20, 7]]
rate-ms: 1000
sample: istats fan speed --value
- title: Battery
position: [[0, 30], [80, 12]] # [[x, y], [w, h]]
rate-ms: 1000
sample: istats battery capacity --no-graphs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment