19 lines
268 B
Go
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
|
|
}
|