Skip to content

jakobgrine/barista-backlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())
}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages