Skip to content

andrieee44/jstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSTAT

NAME SYNOPSIS DESCRIPTION CONFIGURATION EXAMPLE OUTPUT UserHost (struct): Date (struct): Uptime (struct): Bat (map[string]struct): Cpu (struct): Bri (struct): Disk (map[string]struct): Swap (struct): Ram (struct): Vol (struct): Music (struct): Internet (struct): Ethernet (struct): Hyprland (struct): Bluetooth (struct): SEE ALSO AUTHOR


NAME

jstat − system statistics in JSON

SYNOPSIS

jstat

DESCRIPTION

jstat is a system statistics aggregator, originally designed to work with eww.

CONFIGURATION

Configuration is done by altering cmd/jstat/config.go. See https://github.com/andrieee44/jstat for more information.

EXAMPLE OUTPUT

UserHost (struct):

UID (string):

The user’s ID.

GID (string):

The user’s group ID.

Name (string):

The user’s username.

Host (string):

The hostname of the system.

Date (struct):

Date (string):

The current time.

Icon (string):

The hour icon.

Uptime (struct):

Hours (int):

The amount of uptime hours.

Minutes (int):

The amount of uptime minutes.

Seconds (int):

The amount of uptime seconds.

Bat (map[string]struct):

Status (string):

The current status of the battery. Possible values are: "Charging", "Discharging", "Full", "Not Charging", "Unknown".

Capacity (int):

The battery capacity in percentage.

Icon (string):

The battery capacity icon.

Cpu (struct):

Cores (map[int]struct):

The list of CPU cores in the system.

Freq (int):

The frequency of the CPU core.

Usage (float64):

The CPU core usage in percentage.

AvgUsage (float64):

The average usage of all CPU cores.

Icon (string):

The average usage icon of all CPU cores.

Bri (struct):

Perc (float64):

The screen brightness percentage.

Icon (string):

The screen brightness percentage icon.

Disk (map[string]struct):

Total (int):

The total disk space in path.

Free (int):

The free disk space available in path.

Used (int):

The used disk space in path.

UsedPerc (float64):

The used disk space percentage in path.

Icon (string):

The used disk space percentage icon in path.

Swap (struct):

Total (int):

The total swap space.

Free (int):

The free swap space.

Used (int):

The used swap space.

UsedPerc (float64):

The used swap space percentage.

Icon (string):

The used swap space percentage icon.

Ram (struct):

Total (int):

The total RAM in the system.

Free (int):

The free RAM in the system.

Available (int):

The available RAM in the system.

Used (int):

The used RAM in the system.

UsedPerc (float64):

The used RAM percentage in the system.

Icon (string):

The used RAM percentage icon.

Vol (struct):

Perc (float64):

The volume loudness percentage.

Mute (bool):

Whether the volume is muted.

Icon (string):

The volume loudness percentage icon.

Music (struct):

Song (string):

The current song loaded in mpd(1).

State (string):

The state of the music player of mpd(1). Possible values are "play", "pause", "stop".

Scroll (int):

The index offset for text scrolling effect.

Limit (int):

The scroll limit.

Internet (struct):

Internets (map[string]struct):

The list of available system wifi interfaces.

Name (string):

The SSID of the wifi.

Icon (string):

The signal strength percentage of the wifi icon.

Powered (bool):

Whether the system wifi interface is powered on.

Scanning (bool):

Whether the system wifi interface is scanning for available wifis.

Scroll (int):

The index offset for text scrolling effect.

Strength (float64):

The signal strength percentage of the wifi.

Limit (int):

The scroll limit.

Ethernet (struct):

Ethernets (map[string]struct):

The list of available system ethernet interfaces.

Powered (bool):

Whether the system ethernet interface is powered on.

Scroll (int):

The index offset for text scrolling effect.

Limit (int):

The scroll limit.

Hyprland (struct):

Window (string):

The name of the current active window in Hyprland.

Monitors (map[int]struct):

The list of available monitors in the system.

Name (string):

The name of the monitor.

Workspaces (map[int]string):

The name of the nth workspace of the monitor.

ActiveMonitor (int):

The current active monitor in Hyprland.

ActiveWorkspace (int):

The current active workspace in Hyprland.

Scroll (int):

The index offset for text scrolling effect.

Limit (int):

The scroll limit.

Bluetooth (struct):

Adapter (map[string]struct):

The bluetooth adapters on the system.

Name (string):

The bluetooth adapter interface name.

Scroll (int):

The index offset for text scrolling effect.

Powered (bool):

Whether the bluetooth adapter is powered on.

Discovering (bool):

Whether the bluetooth adapter is discovering other available devices.

Devices (map[string]struct):

The devices known to the bluetooth adapter.

Name (string):

The name of the device.

Icon (string):

The battery capacity icon.

Battery (int):

The battery capacity in percentage.

Scroll (int):

The index offset for text scrolling effect.

Connected (bool):

Whether the device is currently connected to the bluetooth adapter.

Limit (int):

The scroll limit.

SEE ALSO

mpd(1).

AUTHOR

Kris Andrie Ortega (andrieee44@gmail.com)


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors