ファイルへ移動
守矢諏訪子 6ff7014bd3 POSIX 2023-08-27 15:31:59 +09:00
config_scripts ロゴを追加、WMとパッケージを追加、GPUとホストを変更 2023-08-23 22:08:01 +09:00
logos ロゴを追加、WMとパッケージを追加、GPUとホストを変更 2023-08-23 22:08:01 +09:00
.gitignore . 2023-08-27 14:50:52 +09:00
CHANGELOG.md Update CHANGELOG.md 2020-04-23 13:57:06 -05:00
LICENSE.txt . 2023-08-27 14:50:52 +09:00
Makefile POSIX 2023-08-27 15:31:59 +09:00
README.md Update README.md 2021-06-05 10:14:22 -04:00
config.def.h . 2023-08-27 14:50:52 +09:00
example.png changed screenshot 2021-06-04 10:07:39 -04:00
paleofetch.c POSIX 2023-08-27 15:31:59 +09:00
paleofetch.h Wayland対応、無駄なコードを削除、色々の所はシンプル化 2023-08-27 13:41:42 +09:00

README.md

paleofetch

A rewrite of neofetch in C. Currently only supports Linux and Xorg.

I am actively maintaining this fork by adding more features, fixing bugs, and supporting more distros.

As of now I have:

  • Corrected all compiler warnings running on GCC 11.1
  • Added logos for 5 distros.
  • Added the option to change logo color, text color, and title color independently.
  • Added macros to make setting colors easier.
  • Fixed bugs in GPU detection code.

Why use paleofetch over neofetch?

One major reason is the performance improvement. For example: neofetch finishes running after about 222 milliseconds where as paleofetch can finish running in a blazing fast 3 milliseconds.

Note: this testing occured on only 1 computer, it's not a good representation on the performance benefit you may gain.

Example output:

example output

Dependencies

Paleofetch requires libX11 and libpci. If you're running Xorg you should already have the former. On Arch Linux, you should have libpci already installed if you have pciutils installed. On other linux distrobutions, you may need to install libpci seperatley if its not already present.

Compiling

make install

Usage

After compiling, simply run the executable:

paleofetch

By default, paleofetch will cache certain information (in $XDG_CACHE_HOME/paleofetch) to speed up subsequent calls. To ignore the contents of the cache (and repopulate it), run

paleofetch --recache

The cache file can safely be removed at any time, paleofetch will repopulate it if it is absent.

Configuration

Paleofetch is configured by editing config.h and recompiling. You can change your logo by including the appropriate header file in the logos directory. The color with which paleo fetch draws the logo can be chosen by defining the COLOR macro, look up ANSI escape codes for information on customizing this.

The last configuration is the CONFIG macro, which controls what information paleofetch prints. Each entry in this macro should look like

{ "NAME: ",   getter_function, false }, \

Take note of the trailing comma and backslash. The first piece, "NAME: ", sets what paleofetch prints before printing the information; this usually tells you what bit of information is being shown. Note that the name entry should be unique for entries which are to be cached. The second piece, getter_function, sets which function paleofetch will call display. Current available getter functions are

  • get_title: prints host@user like in a bash prompt. Host and user will be printed in color.
  • get_bar: Meant to be added after get_title, underlines the title
  • get_os: Prints your operating system (including distrobution)
  • get_host: Prints the model of computer
  • get_kernel: Prints the version of the linux kernel
  • get_uptime: Shows how long linux has been running
  • get_packages: Shows how many packages you have installed. Currently only works for pacman.
  • get_shell: Shows which shell you are using
  • get_resolution: Prints your screen resolution
  • get_terminal: Prints the name of your current terminal
  • get_cpu: Prints the name of your CPU, number of cores, and maximum frequency
  • get_gpu1, get_gpu2: Print the GPU on your system. If you don't have both integrated graphics and an external GPU, get_gpu2 will likely be blank
  • get_gpu: (Tries to) print your current GPU
  • get_colors1, get_colors2: Prints the colors of your terminal

To include a blank line between entries, put SPACER \ between the two lines you want to separate.

The booleans in CONFIG tell paleofetch whether you want to cache an entry. When cached, paleofetch will save the value and not recompute it whenever you run paleofetch (unless you specify the --recache option).

The CPU and GPU name can be configured as well. This is done under the CPU_CONFIG and GPU_CONFIG section in the config.h file. Two macros are provided to customize and tidy up the model names:

  • REMOVE(string): removes the first occurence of string
  • REPLACE(string1, string2): replaces the first occurence of string1 with string2

Don't forget to run paleofetch with the --recache flag after compiling it with your new configuration, otherwise it will still show the old name for already cached entries.

FAQ

Q: Do you really run neofetch every time you open a terminal?
A: Yes, I like the way it looks and like that it causes my prompt to start midway down the screen. I do acknowledge that the information it presents is not actually useful.