Commit graph

7 commits

Author SHA1 Message Date
Eduard Tolosa d6c1ff9518 fix: use .PhysicalAvailableMemory instead of PhysicalFreeMemory
when showing memory usage, what you want to know is the used memory,
which doesn't include cached memory; cache memory can be claimed by
the kernel under memory pressure.

the Linux kernel will try to use as much cache as possible by default,
but that doesn't mean that the RAM is not available.

This PR fixes that and shows only the real used memory.
2025-03-03 13:59:11 +01:00
Jan De Dobbeleer 28f6c19309 feat(git): replace branch properties with template
BREAKING CHANGE: this removes branch properties from the git segment
and replaces them with a single template. To migrate, use the following
guide.

*branch_max_length*

`"branch_max_length": 5` -> `"branch_template": "{{ trunc 5 .Branch }}"`

This will turn `feature/test-this-branch` into `featu`

If you want to display a truncate symbol at the end of the branch name:

`"branch_template": "{{ truncE 5 .Branch }}"`

This will turn `feature/test-this-branch` into `feat…`

*full_branch_path*

`"full_branch_path": false` -> `"branch_template": "{{ base .Branch }}"`

This will turn `feature/test-this-branch` into `test-this-branch`
2025-02-27 08:48:41 +01:00
Jan De Dobbeleer cea18715bb refactor: add config version 3 2024-11-04 12:15:40 +01:00
Christopher Narowski e976ce89c1 fix: correct theme memory display template for byte-to-gigabyte conversion
Updated conversion factor from 1000000000 to 1073741824. This change ensures memory usage is correctly displayed as a gigabyte (2^30 bytes).
2023-12-19 18:38:36 +01:00
Jan De Dobbeleer c57975985f fix(font): migrate away from material icons
resolves #3818
2023-05-09 11:32:04 +02:00
Jan De Dobbeleer 9663a29fe6
feat(font): update to Nerd Font V3
BREAKING CHANGE: this deprecates support for Nerd Font V2 and
requires a compatible V3 Nerd Font. Note for users experiencing
issues with icons, update to the latest Nerd Font of your choice
2023-05-08 13:33:59 +02:00
Guilherme Elias fdf41755e0 feat(theme): add illusi0n theme 2022-09-26 18:00:17 +02:00