#include "fastfetch.h" #include "fastfetch_config.h" #include "util/FFvaluestore.h" #include #include #include #include #include #define FASTFETCH_DEFAULT_STRUCTURE "Title:Seperator:OS:Host:Kernel:Uptime:Packages:Shell:Resolution:DE:Theme:Icons:Font:Terminal:CPU:GPU:Memory:Disk:Battery:Locale:Break:Colors" #define FASTFETCH_DEFAULT_CONFIG \ "## Fastfetch configuration\n" \ "## Put arguments here to make them permanently.\n" \ "## Direct arguments will overwrite the corresponding ones in this files\n" \ "## Each line is whitespace trimmed on beginn and end.\n" \ "## Empty lines or lines starting with # are ignored.\n" \ "## There are more arguments possible than listed here, take a look at fastfetch --help!\n" \ "\n" \ "## General options:\n" \ "# --structure "FASTFETCH_DEFAULT_STRUCTURE"\n" \ "# --seperator 4\n" \ "# --offsetx 0\n" \ "# --recache false\n" \ "# --show-errors false\n" \ "\n" \ "## Logo options:\n" \ "# --color-logo true\n" \ "\n" \ "## Battery options:\n" \ "# --battery-manufacturer true\n" \ "# --battery-model true\n" \ "# --battery-technology true\n" \ "# --battery-capacity true\n" \ "# --battery-status true\n" //Things only needed by fastfetch typedef struct FFdata { FFvaluestore valuestore; char structure[2048]; char logoName[32]; } FFdata; static void printHelp() { puts( "Usage: fastfetch \n" "\n" "Informative options:\n" " -h, --help: shows this message and exits\n" " -h , --help : shows help for a specific command and exits\n" " -v --version: prints the version of fastfetch and exits\n" " --list-logos: list available logos and exits\n" " --print-logos: shows available logos and exits\n" " --print-default-config: prints the default config and exits\n" "\n" "General options:\n" " --structure : sets the structure of the fetch. Must be a colon seperated list of keys\n" " --set : hard set the value of an key\n" " -c , --color : sets the color of the keys. Must be a linux console color code (+)\n" " -s , --seperator : sets the distance between logo and text\n" " -x , --offsetx : sets the x offset. Can be negative to cut the logo, but no more than logo width.\n" " --show-errors : print occuring errors\n" " -r --recache : if set to true, no cached values will be used\n" "\n" "Logo options:\n" " -l , --logo : sets the shown logo. Also changes the main color accordingly\n" " --color-logo : if set to false, the logo will be black / white\n" "\n" "Battery options:\n" " --battery-manufacturer : Show the manufacturer of the battery, if possible\n" " --battery-model : Show the model of the battery, if possible\n" " --battery-technology : Show the technology of the battery, if possible\n" " --battery-capacity : Show the capacity of the battery, if possible\n" " --battery-status : Show the status of the battery, if possible\n" " --battery-formart : Provide the printf format string for battery output (+)\n" "\n" "If an value starts with an ?, it is optional. \"true\" will be used if not set.\n" "An (+) at the end indicates that more help can be printed with --help