i3-wallpaper-manager/feh.go
Simon Vieille 3e3f4445a4
Some checks are pending
ci/woodpecker/push/build Pipeline is pending approval
ci/woodpecker/push/test Pipeline is pending approval
fix #1: add cache of latest command to not run wallpaper update when it's already up to date
2024-08-11 19:16:00 +02:00

19 lines
268 B
Go

package main
import (
"os"
"os/exec"
)
func FehUpdateWallpapers(files []string) *exec.Cmd {
args := []string{}
for _, file := range files {
args = append(args, "--bg-fill", file)
}
cmd := exec.Command("feh", args...)
cmd.Env = os.Environ()
return cmd
}