DiskFree

package
Version: v0.0.0-...-0caaa62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 3 Imported by: 0

Documentation

Overview

Package DiskFree is a monitoring applet for Cairo-Dock.

Show disk usage for mounted partitions. Partitions can be autodetected or you can provide a list of partitions. You can also use autodetect with some partitions names to be listed first.

Partitions names are designed by their mount point like / or /home. Use the df command to know your partitions list.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplet

func NewApplet(base cdtype.AppBase, events *cdtype.Events) cdtype.AppInstance

NewApplet creates a new applet instance.

Types

type Applet

type Applet struct {
	cdtype.AppBase // Applet base and dock connection.
	// contains filtered or unexported fields
}

Applet defines a dock applet.

func (*Applet) Init

func (app *Applet) Init(def *cdtype.Defaults, confLoaded bool)

Init loads user configuration if needed and initialise applet.

type DiskFree

type DiskFree struct {
	sysinfo.RenderPercent
	// contains filtered or unexported fields
}

DiskFree is a data poller for disk usage monitoring.

func (*DiskFree) Check

func (disks *DiskFree) Check()

Check updates disk usage information from the system.

func (*DiskFree) SetParts

func (disks *DiskFree) SetParts(parts []string, autoDetect bool)

SetParts sets the user monitored pertitions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL