i3-wallpaper-manager/feh.go
Simon Vieille 098b04f5a5
Some checks are pending
ci/woodpecker/push/build Pipeline is pending approval
ci/woodpecker/push/test Pipeline is pending approval
refactoring: move logic in different files
2024-07-31 12:38:34 +02:00

19 lines
288 B
Go

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