aboutsummaryrefslogtreecommitdiff
path: root/lemonbar/sys_bar
diff options
context:
space:
mode:
Diffstat (limited to 'lemonbar/sys_bar')
-rwxr-xr-xlemonbar/sys_bar14
1 files changed, 14 insertions, 0 deletions
diff --git a/lemonbar/sys_bar b/lemonbar/sys_bar
new file mode 100755
index 00000000..f55e26d0
--- /dev/null
+++ b/lemonbar/sys_bar
@@ -0,0 +1,14 @@
+#!/bin/python
+
+import time
+import os
+
+def getMem():
+ mem = os.popen('free -m | grep Mem').read().split()
+ return 'Mem: ' + str(int(int(mem[2]) / int(mem[1]) * 100))
+
+print(getMem())
+
+def getCPU():
+
+