Skip to content

Commit

Permalink
chore: update to streamdeck v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Feb 17, 2022
1 parent 1e3925e commit 2637234
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/jezek/xgbutil v0.0.0-20210302171758-530099784e66
github.com/lucasb-eyer/go-colorful v1.2.0
github.com/mitchellh/go-homedir v1.1.0
github.com/muesli/streamdeck v0.2.3-0.20220205132636-dbbc8865ab8c
github.com/muesli/streamdeck v0.3.0
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/muesli/coral v1.0.0/go.mod h1:bf91M/dkp7iHQw73HOoR9PekdTJMTD6ihJgWoDitde8=
github.com/muesli/streamdeck v0.2.3-0.20220205132636-dbbc8865ab8c h1:t/oQtq9wlSdMiOLmUk2Nn1G5JyNTcNhe9PvMbDR3yFc=
github.com/muesli/streamdeck v0.2.3-0.20220205132636-dbbc8865ab8c/go.mod h1:iBrvujOQ0WXWBJfi25gFOj/AVgq7FKfjPLi5AISKZx8=
github.com/muesli/streamdeck v0.3.0 h1:BrUXEPtzDy9hO/l2ZLMKsik0VrNDwt8hHRomKq0NlFQ=
github.com/muesli/streamdeck v0.3.0/go.mod h1:iBrvujOQ0WXWBJfi25gFOj/AVgq7FKfjPLi5AISKZx8=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ var (
)

const (
fadeDuration = 250 * time.Millisecond
longPressDuration = 350 * time.Millisecond
)

Expand Down Expand Up @@ -225,6 +226,7 @@ func initDevice() (*streamdeck.Device, error) {
return &dev, err
}

dev.SetSleepFadeDuration(fadeDuration)
if len(*sleep) > 0 {
timeout, err := time.ParseDuration(*sleep)
if err != nil {
Expand Down

0 comments on commit 2637234

Please sign in to comment.