update wallpapers on start
This commit is contained in:
parent
1a94e88eff
commit
e229ae1440
4 changed files with 25 additions and 21 deletions
10
main.go
10
main.go
|
|
@ -21,17 +21,13 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
UpdateWallapers(config)
|
||||
|
||||
for recv.Next() {
|
||||
event := recv.Event().(*i3.WorkspaceEvent)
|
||||
|
||||
if event.Change == "focus" {
|
||||
cmd, err := HandleFocusEvent(config)
|
||||
|
||||
if err != nil {
|
||||
log.Printf("[ERROR] cmd=%s error=%s", cmd.String(), err.Error())
|
||||
} else {
|
||||
log.Printf("[SUCCESS] cmd=%s", cmd.String())
|
||||
}
|
||||
UpdateWallapers(config)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue