Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages