Skip to content

Instantly share code, notes, and snippets.

@GrapsasFilippos
Last active June 17, 2019 14:15
Show Gist options
  • Save GrapsasFilippos/66e44997c90f5a359ba4e6b757d86542 to your computer and use it in GitHub Desktop.
Save GrapsasFilippos/66e44997c90f5a359ba4e6b757d86542 to your computer and use it in GitHub Desktop.
defscrollback 1000
backtick 1 3600 3600 /bin/hostname
backtick 2 3600 3600 /usr/bin/nproc
#backtick 3 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/Physical id [0-9]*: \([^°]*°C\).*/\1/p"'
#backtick 3 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/temp1:\s*\([^°]*°C\)\s*(h.*/\1/p"'
backtick 3 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/Tdie:\s*\([^°]*°C\)\s*(h.*/\1/p"'
backtick 4 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/temp1:\s*\([^°]*°C\)\s*(c.*/\1/p"'
backtick 5 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/fan1:\s*\([0-9]*\).*/\1/p"'
caption always "%{kG}%1` %{wg} %{-} [%n %t]%? (%W)%? %{wg} %{-} %l %{wg}%2`%{-} CPU:%3`|GPU:%4`@%5`RPM %10` %=%c %d/%m/%Y"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment