summaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-11-07 11:02:31 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-11-07 11:02:31 +0100
commitaf7360709505c9af44c99c3ff91f453ec7e35aeb (patch)
treeb314a8b4a304a5a7c2ba943c23e25b56eb50056a /i3
parent612f08778c346b8e0d294df8828fce33f99f1d25 (diff)
[i3blocks] Add ram usage
Diffstat (limited to 'i3')
-rw-r--r--i3/.config/i3blocks/config5
1 files changed, 5 insertions, 0 deletions
diff --git a/i3/.config/i3blocks/config b/i3/.config/i3blocks/config
index c1a9b1e..c11f93c 100644
--- a/i3/.config/i3blocks/config
+++ b/i3/.config/i3blocks/config
@@ -70,6 +70,11 @@ interval=5
command=~/dotfiles/i3/.config/i3blocks/bin/battery
interval=30
+[ram]
+label=<span color='gray'></span>
+command=echo $(free | grep '^Mem' | awk '{ printf "%3.0f%\n", 100*$3/$2 }')
+interval=30
+
[diskhome]
label=<span color='gray'></span>
command=/usr/lib/i3blocks/disk