Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Created September 30, 2020 20:33
Show Gist options
  • Save cirrusUK/f0f24d7c88a8780677aa9e7afc2f1b49 to your computer and use it in GitHub Desktop.
Save cirrusUK/f0f24d7c88a8780677aa9e7afc2f1b49 to your computer and use it in GitHub Desktop.
#!/bin/bash
export DISPLAY=":0"
export XDG_RUNTIME_DIR=/run/user/$(id -u)
while true; do free | grep Mem | awk '{print $3/$2 * 100.0}'; sleep 1; done | osd_cat --align right --pos bottom -o 50 --lines 1 --delay 2 -f '-*-envy code r-*-*-*-*-24-*-*-*-*-*-*-*' -c orange & while true; do top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}'; sleep 1; done | osd_cat --align right --pos bottom --lines 1 --delay 2 -f '-*-envy code r-*-*-*-*-24-*-*-*-*-*-*-*' -o 20 -c orange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment