block

package
v0.0.0-...-68b686e Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package block provides the implementation of each block in the swaybar.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	proto.Block
	UpdateChan chan proto.Block
	// contains filtered or unexported fields
}

Block represents a single block in the swaybar.

func New

func New(conf config.Block) Block

New creates a Block from its configuration.

func (*Block) Run

func (b *Block) Run(ctx context.Context, updateRequestSig syscall.Signal)

Run runs a Block indefinitely, sending updated swaybar protocol blocks on its UpdateChan whenever there is a change.

Jump to

Keyboard shortcuts

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