procfetch  0.3.0
A command-line system information utility written in C++
Classes | Enumerations | Functions
fetch.h File Reference
#include "color.h"
#include "config.h"
#include <algorithm>
#include <cctype>
#include <cerrno>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <mutex>
#include <ostream>
#include <sstream>
#include <stdexcept>
#include <string.h>
#include <string>
#include <sys/errno.h>
#include <sys/wait.h>
#include <thread>
#include <unistd.h>
#include <vector>
Include dependency graph for fetch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Path
 
class  Command
 
class  Crayon
 
class  Context
 
class  Options
 

Enumerations

enum class  Mode { NORMAL , SHOW_VERSION }
 

Functions

string getuser ()
 
string gethostname (string path)
 
string getOS (string path)
 
string getHardwarePlatform ()
 
string getHost (string path)
 
string getKernel (string path)
 
string getUpTime (string path)
 
string getRAM (string path)
 
string getSHELL (string path)
 
string getDE ()
 
bool resCheck ()
 
string getRES (string path)
 
string getTheme ()
 
string getIcons ()
 
string getCPU (string path)
 
bool CpuTempCheck ()
 
int getCPUtemp (string path)
 
vector< string > getGPU ()
 
string getPackages ()
 
void printBattery (string path)
 
void print (string color, string distro_name)
 
string getColor (string)
 

Function Documentation

◆ CpuTempCheck()

bool CpuTempCheck ( )
Returns
checks for CPUtemp file

◆ getCPU()

string getCPU ( string  path)
Returns
gets CPU info
Parameters
path

◆ getCPUtemp()

int getCPUtemp ( string  path)
Returns
gets CPU temp
Parameters
path

◆ getDE()

string getDE ( )
Returns
gets the Desktop Environment

◆ getGPU()

vector<string> getGPU ( )
Returns
gets vendor of Internal and External GPU

◆ getHardwarePlatform()

string getHardwarePlatform ( )
Returns
gets HardWare Platform

◆ getHost()

string getHost ( string  path)
Returns
gets Host
Parameters
path

◆ gethostname()

string gethostname ( string  path)
Returns
gets the hostname
Parameters
path

◆ getIcons()

string getIcons ( )
Returns
gets current Icon info

◆ getKernel()

string getKernel ( string  path)
Returns
gets kernel
Parameters
path

◆ getOS()

string getOS ( string  path)
Returns
gets name of Operating System
Parameters
path

◆ getPackages()

string getPackages ( )
Returns
gets count of all packages installed

◆ getRAM()

string getRAM ( string  path)
Returns
gets RAM usage details
Parameters
path

◆ getRES()

string getRES ( string  path)
Returns
gets current Screen Resolution
Parameters
path

◆ getSHELL()

string getSHELL ( string  path)
Returns
gets type of shell
Parameters
path

◆ getTheme()

string getTheme ( )
Returns
gets current Theme info

◆ getUpTime()

string getUpTime ( string  path)
Returns
get Uptime
Parameters
path

◆ getuser()

string getuser ( )
Returns
gets the username
Exceptions
runtime_errorfailed to get username

◆ print()

void print ( string  color_name,
string  distro_name 
)

Utility to print ascii art of Distro

Parameters
color_name
distro_name

◆ printBattery()

void printBattery ( string  path)
Returns
prints battery percentage bar
Parameters
path

◆ resCheck()

bool resCheck ( )
Returns
checks for Resolution file