From 8acf29a306884b980a410041699224c3c7e2cf79 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 22 Aug 2021 11:36:53 -0400 Subject: .config/fbpanel/taskbar: Add cpu, mem, and net Move tray leftward and transpose volume and battery monitors. --- (limited to '.config') diff --git a/.config/fbpanel/taskbar b/.config/fbpanel/taskbar index 2905b1a..71a2eeb 100644 --- a/.config/fbpanel/taskbar +++ b/.config/fbpanel/taskbar @@ -58,15 +58,55 @@ Plugin { } Plugin { - type = genmon + type = tray expand = false padding = 0 +} + +Plugin { + type = cpu config { - command = ~/lib/panel/batmon - textsize = 10240 - textcolor = #F3F3F5 - pollingtime = 1 - maxtextlength = 6 + color = green + } +} + +Plugin { + type = mem + config { + ShowSwap = false + } +} + +Plugin { + type = net + config { + interface = ens9 + TxColor = violet + RxColor = blue +# 1 Gb/s = 122070.3125 KiB/s +# The chart seems to overflow a border of 2 px at the top and 1 px at the +# bottom (3 px total, leaving 45 px of usable space out of the 48 px panel +# height), so the limits should be: +# 122070.3125 KiB/s * 48 px / 45 px = 130208.33 KiB/s + TxLimit = 130208 + RxLimit = 130208 + } +} + +Plugin { + type = net + config { + interface = ens9 + TxColor = violet + RxColor = blue +# 8 Mb/s = 976.5625 KiB/s +# 2 Mb/s = 244.140625 KiB/s +# 8 Mb/s + 2 Mb/s = 10 Mb/s = 1220.703125 KiB/s +# Limits calculations: +# 976.5625 KiB/s * 48 px / 45 px = 1041.67 KiB/s +# 244.140625 KiB/s * 48 px / 45 px = 260.42 KiB/s + TxLimit = 1042 + RxLimit = 260 } } @@ -84,9 +124,16 @@ Plugin { } Plugin { - type = tray + type = genmon expand = false padding = 0 + config { + command = ~/lib/panel/batmon + textsize = 10240 + textcolor = #F3F3F5 + pollingtime = 1 + maxtextlength = 6 + } } Plugin { -- cgit v0.9.1