Added swap % free to prompt

This commit is contained in:
Gal Szkolnik 2022-06-09 14:23:05 -04:00
parent dfe6dfe212
commit df97fb2614
1 changed files with 15 additions and 0 deletions

View File

@ -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",