snippets

package
v0.0.0-...-c6ae6cd Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule() common.Module

Types

type Snippet

type Snippet struct {
	Category string
	Name     string
	Value    string
}

type Snippets

type Snippets struct {
	Name        string
	Description string
	Slug        string
	// contains filtered or unexported fields
}

func (*Snippets) GetDescription

func (m *Snippets) GetDescription() string

func (*Snippets) GetLastRun

func (m *Snippets) GetLastRun() string

func (*Snippets) GetName

func (m *Snippets) GetName() string

func (*Snippets) GetRunInterval

func (m *Snippets) GetRunInterval() int64

func (*Snippets) GetRunIntervalOnBattery

func (m *Snippets) GetRunIntervalOnBattery() int64

func (*Snippets) GetSlug

func (m *Snippets) GetSlug() string

func (*Snippets) GetWaybarOutput

func (m *Snippets) GetWaybarOutput() (*common.WaybarOutput, error)

func (*Snippets) IsEnabled

func (m *Snippets) IsEnabled() bool

func (*Snippets) Run

func (m *Snippets) Run() error

func (*Snippets) RunCommand

func (m *Snippets) RunCommand(name string, args []string) error

func (*Snippets) SaveLastRun

func (m *Snippets) SaveLastRun()

func (*Snippets) SuspendOnBattery

func (m *Snippets) SuspendOnBattery() bool

func (*Snippets) WriteOutput

func (m *Snippets) WriteOutput() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL