Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Add x11 notification
  • Loading branch information
frioux committed Jun 16, 2019
1 parent 8e77db6 commit 64ea3507ded10e8ededa3b85b7fa648d9fc6e729
Showing with 6 additions and 0 deletions.
  1. +6 −0 cmd/wuphf/wuphf.go
@@ -13,6 +13,7 @@ import (
var drivers = map[string]driver{
"wall": wall,
"pushover": pushover,
"notify": notify,
}

func main() {
@@ -77,3 +78,8 @@ func wall(message string) error {
cmd := exec.Command("wall", "-t", "2", message)
return cmd.Run()
}

func notify(message string) error {
cmd := exec.Command("notify-send", "-u", "critical", "wuphf", message)
return cmd.Run()
}

0 comments on commit 64ea350

Please sign in to comment.