19 lines
288 B
Go
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()
|
|
}
|