Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 482 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 482 Bytes

barista-backlight

A module for the barista status bar to display and control the screen brightness.

Usage

package main

import (
    "barista.run"
    "barista.run/bar"
    "barista.run/outputs"
  
    "github.com/jakobgrine/barista-backlight"
)

func main() {
    barista.Add(backlight.New("acpi_video0").Output(func(b *backlight.Backlight) bar.Output {
        return outputs.Textf("%d%%", b.Percent())
    }))
  
    panic(barista.Run())
}