polybar

package
v0.0.0-...-85d8822 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LEFT_CLICK = MouseIndex(iota + 1)
	MIDDLE_CLICK
	RIGHT_CLICK
	SCROLL_UP
	SCROLL_DOWN
	// Double click is kinda "meh", so avoid it
	DOUBLE_LEFT_CLICK
	DOUBLE_MIDDLE_CLICK
	DOUBLE_RIGHT_CLICK
)

From https://github.com/polybar/polybar/wiki/Formatting#action-a

View Source
const (
	FOREGROUND = FormatType("F")
	BACKGROUND = FormatType("B")
	REVERSE    = FormatType("R")
	UNDERLINE  = FormatType("u")
	OVERLINE   = FormatType("o")
	FONT       = FormatType("T")
	OFFSET     = FormatType("o")
)

from https://github.com/polybar/polybar/wiki/Formatting#format-tags

Variables

This section is empty.

Functions

func WithDmenu

func WithDmenu()

func WithGUI

func WithGUI()

Types

type ActionButton

type ActionButton struct {
	Index            MouseIndex
	Display, Command string
}

func ActionOver

func ActionOver(a ActionButton, index MouseIndex, command string) ActionButton

func (ActionButton) String

func (a ActionButton) String() string

type FormatType

type FormatType string

type MouseIndex

type MouseIndex uint

type Polybar

type Polybar struct {
	// contains filtered or unexported fields
}

func (Polybar) HandleError

func (Polybar) HandleError(err error, message string)

func (Polybar) HandleNothingPlaying

func (Polybar) HandleNothingPlaying() (shouldExit bool)

func (Polybar) PrintDisabled

func (p Polybar) PrintDisabled()

func (Polybar) Update

func (p Polybar) Update(player *mpris.Player)

type Span

type Span struct {
	Format FormatType
	Extra  string
	Text   string
}

func (Span) String

func (s Span) String() string

Jump to

Keyboard shortcuts

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