Crate nixinfo

Source

Functions§

cpu
Obtain CPU model, outputs to a Result
device
Obtain name of device, outputs to a string
distro
Obtain the distro name, outputs to a string
env
Obtain the contents of the env variable specified as an arg, outputs to a string
environment
Obtains the name of the user’s DE or WM, outputs to a string
gpu
Obtain the name of the GPU, outputs to a string
hostname
Obtain the hostname, outputs to a Result
kernel
Obtain the kernel version, outputs to a Result
memory
Obtain total memory in MBs, outputs to a Result
music
If the music feature is enabled, it connects to mpd, and obtains music info in the format “artist - album (date) - title”, outputs to a String
packages
Obtain list of packages based on what manager is given as an arg, outputs to a string
temp
Obtain the temp of the CPU in Celsius, only tested on rpi, outputs to a Result
terminal
Obtain the name of the terminal being used, outputs to a Result
uptime
Obtains the current uptime of the system, outputs to a Result