diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-01 12:10:20 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-01 12:10:20 +0530 |
commit | c0333b8bd91b164d452e515fb4176089823aa65a (patch) | |
tree | 6f0069a19943daf1bd95f90589b457eb1883e599 /lemonbar | |
parent | 6c055d89bdfd51eab7ba111a95dd55701d1c9888 (diff) |
fixed the temperature being blank if weather stat wasn't haze; currently only supports haze and smoke
Diffstat (limited to 'lemonbar')
-rwxr-xr-x | lemonbar/sys_bar | 14 | ||||
-rwxr-xr-x | lemonbar/ws_bar (renamed from lemonbar/mainbar) | 0 | ||||
-rwxr-xr-x | lemonbar/ws_button_actions (renamed from lemonbar/button-actions) | 0 |
3 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(): + + diff --git a/lemonbar/mainbar b/lemonbar/ws_bar index d8d1674e..d8d1674e 100755 --- a/lemonbar/mainbar +++ b/lemonbar/ws_bar diff --git a/lemonbar/button-actions b/lemonbar/ws_button_actions index bebf6635..bebf6635 100755 --- a/lemonbar/button-actions +++ b/lemonbar/ws_button_actions |