Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork639
Fastfetch 2.0#310
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
fastfetch 2.0 plan & discussionStill a thought process, so please note what you like / dislike, and what should change! I plan on regularly updating this post with new ideas, and once i (and hopefully most active users) think it is good, i start implementing it. General ideaThe plan is to completely rewrite the configuration system in a way, that the same module can be printed multiple times with a different configuration. This would allow for some pretty nifty configuration options, for example one could print the Theme module multiple times, one time showing QT, the other time showing GTK theme. Merging of modulesThis would clean up both code and user config. Since the resulting modules can then be printed with different configs, all existing configurations should still be possible to achieve.
New config fileFor a simpler configuration, i am currently thinking about using a yaml file for config. It would make config pretty easy, but i am still a bit concerned about parsing time. A config file could look like this for example: color:pinkbinaryPrefix:sidisableLinewrap:falselogo:name:archcolors:1:greenpadding:right:2modules: -type:titlecolor:blue -type:separator -type:os -type:packageskey:packages (native)format:{1} (pacman) -type:packageskey:packages (sandboxed)format:{13} (flatpack), {14} (snap) Changed command line flagsBoolean flagsCurrently the have a lot of boolean command line flags. They default to true. This is counter intuitive if they change a value, that also defaults to true. For example Module flagsI am currently unsure what the better way is. I still want to provide flags that change to config of modules. The following behaviour is possible:
Please tell me what you prefer! Implementation detailsFormat stringsI want to change format string functions to take callbacks instead of values. This should increase execution speed, since we only detect what is really printed. But because this is such a big change, requiring an update for literally every module, i think this should be part of 2.0 too. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
I don't like it. Different modules ( other than date time ) with different functions should be separate to prevent code from coupling. Instead, we should implement line merging, that is to say, provide ability to print different module results in the same line, while keep modules separate. Printing same module multiple times has other usage. For example: execute bash scripts to detect gcc version, clang version, nodejs version etc. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Config modules: -type:memory swap# different modules can be merged into one linekey:Memory# line key. Merged modules must have a key specifiedformat:{memory.3}% [Ram], {swap.3}% [Swap]# {memory.3} means 3rd value of module memory's result. {memory.percentage} would be much better if we support that. will print modules -type:disk os# not supported because disk may print multilines will print error: |
BetaWas this translation helpful?Give feedback.