From df97fb26147a3c20db0f1aa71af6a766b9930963 Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Thu, 9 Jun 2022 14:23:05 -0400 Subject: [PATCH] Added swap % free to prompt --- _home/private_dot_poshtheme.omp.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/_home/private_dot_poshtheme.omp.json b/_home/private_dot_poshtheme.omp.json index dc282a9..e2e4992 100644 --- a/_home/private_dot_poshtheme.omp.json +++ b/_home/private_dot_poshtheme.omp.json @@ -204,6 +204,21 @@ "trailing_diamond": "\ue0b0\u2500\u256e", "type": "session" }, + { + "background": "#81ff91", + "background_templates": [ + "{{ if gt .SwapPercentUsed 90.0 }}red{{ else if gt .SwapPercentUsed 75.0 }}lightRed{{ end }}" + ], + "foreground": "#000000", + "foreground_templates": [ + "{{ if gt .SwapPercentUsed 90.0 }}#d3d7cf{{ end }}" + ], + "invert_powerline": true, + "style": "powerline", + "powerline_symbol": "\ue0b2", + "template": "sw{{ printf \"%.0f%%\" .SwapPercentUsed }}", + "type": "sysinfo" + }, { "background": "#d3d7cf", "foreground": "#000000",