diff options
author | Karel Kočí <cynerd@email.cz> | 2021-04-20 12:42:58 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2021-04-20 12:42:58 +0200 |
commit | a7855fe4d2242b43b00607212106c84d36bf03ac (patch) | |
tree | 0c57074c40799424e2837201499c295d042b8d88 /config | |
parent | aa145708ee4027a8986fd83783e170cdcd914454 (diff) | |
download | myconfigs-a7855fe4d2242b43b00607212106c84d36bf03ac.tar.gz myconfigs-a7855fe4d2242b43b00607212106c84d36bf03ac.tar.bz2 myconfigs-a7855fe4d2242b43b00607212106c84d36bf03ac.zip |
config/i3blocks: add gpu
Diffstat (limited to 'config')
-rw-r--r-- | config/i3blocks/config | 11 | ||||
-rwxr-xr-x | config/i3blocks/scripts/gpu | 4 |
2 files changed, 12 insertions, 3 deletions
diff --git a/config/i3blocks/config b/config/i3blocks/config index 50289c5..5ae72f8 100644 --- a/config/i3blocks/config +++ b/config/i3blocks/config @@ -15,11 +15,16 @@ interval=once signal=10 [cpu_usage] -interval=10 -separator=false +label=cpu: +interval=1 [memory] -interval=30 +interval=10 + +[gpu] +label=gpu: +command=~/.config/i3blocks/scripts/gpu +interval=1 [disk] label=/ diff --git a/config/i3blocks/scripts/gpu b/config/i3blocks/scripts/gpu new file mode 100755 index 0000000..5153dba --- /dev/null +++ b/config/i3blocks/scripts/gpu @@ -0,0 +1,4 @@ +#!/bin/bash +echo "$(cat /sys/class/drm/card0/device/gpu_busy_percent)%" +echo +echo |