mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-03 11:44:18 +01:00
battery-format
This commit is contained in:
@@ -65,6 +65,13 @@ static void printBattery(FFinstance* instance, uint8_t index)
|
||||
|
||||
ffPrintLogoAndKey(instance, key);
|
||||
|
||||
if(instance->config.batteryFormat[0] != '\0')
|
||||
{
|
||||
printf(instance->config.batteryFormat, manufactor, model, technology, capacity, status);
|
||||
putchar('\n');
|
||||
return;
|
||||
}
|
||||
|
||||
if(manufactor[0] != '\0')
|
||||
printf("%s ", manufactor);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "X11/extensions/Xrandr.h"
|
||||
#include "dlfcn.h"
|
||||
|
||||
short getCurrentRate(Display* display)
|
||||
static short getCurrentRate(Display* display)
|
||||
{
|
||||
void* xrandr = dlopen("libXrandr.so", RTLD_LAZY);
|
||||
if(xrandr == NULL)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "fastfetch.h"
|
||||
|
||||
void printTerminalName(FFinstance* instance, const char* pid)
|
||||
static void printTerminalName(FFinstance* instance, const char* pid)
|
||||
{
|
||||
char file[256];
|
||||
sprintf(file, "/proc/%s/stat", pid);
|
||||
|
||||
Reference in New Issue
Block a user