A system information fetch program written in lua
Lysfetch is a command line program written in Lua that displays basic system information. It can be easily customized in the source code or using command line parameters. More about configuring lysfetch in lysfetch.lua
Use the -h
or --help
parameters to see the program usage
To customize lysfetch, you can either modify the settings section in the source (lysfetch.lua), or
use command line parameters (use the -h
or --help
parameters for command line parameters help).
Customizing is simply done by setting the values of a few variables. You can see them and their types
using the -vv
or --vars
parameters.
These variables are special, because they also have a format syntax; a constant name typed in between
${
}
. This syntax is used to specify where certain info/text will be, or what color will be used
from that point. All the format variables and the constants that can be used in them are below.
The g_color_format
constants can be used in all of the format variables.
info_device
- the product nameinfo_cpu
- the CPUinfo_mem_used
- amount of RAM used in kB/MBinfo_mem_total
- total amount of RAM in kB/MBinfo_mem_free
- amount of free RAM in kB/MBinfo_swap_used
- amount of swap used in kB/MBinfo_Swap_total
- total amount of swap in kB/MBinfo_swap_free
- amount of free swap in kB/MB
info_os
- OS nameinfo_kernel
- kernel versioninfo_term
- terminal infoinfo_shell
- shellinfo_de
- desktop environmentinfo_uptime
- uptime (hours minutes seconds)info_up_secs
- uptime secondsinfo_up_mins
- uptime minutesinfo_up_hours
- uptime hoursinfo_home
- home directoryinfo_user
- the users nameinfo_host
- hostnameinfo_bios
- bios version
label
- the labelalign_spaces
- an offset calculated to align the info part
section
- the section name
fg_red
fg_green
fg_yellow
fg_blue
fg_magenta
fg_cyan
fg_white
fg_bred
fg_bgreen
fg_byellow
fg_bblue
fg_bmagenta
fg_bcyan
fg_bwhite
bg_red
bg_green
bg_yellow
bg_blue
bg_magenta
bg_cyan
bg_white
bg_bred
bg_bgreen
bg_byellow
bg_bblue
bg_bmagenta
bg_bcyan
bg_bwhite
attr_reset
- reset to default colors and attributesattr_bold
attr_dim
attr_italics
attr_underl
- foreground underlinedattr_blink
- the foreground will blink synchronouslyattr_reverse
- reversed background and foreground colors
Run make all
to see all the make rules