summary refs log tree commit diff
path: root/.config/waybar/modules/todo.go
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-08-03 22:12:11 +0200
committerRobert Günzler <r@gnzler.io>2021-08-03 22:12:11 +0200
commit06eccec83a88b2af00b354bedc1a44713938a385 (patch)
treed7bd6fa7696fbee06befee2c79bf1d495d5b3d00 /.config/waybar/modules/todo.go
parentc0b76fb561331af338ee382ce16492f1ff20cf5e (diff)
waybar: update
Diffstat (limited to '.config/waybar/modules/todo.go')
-rwxr-xr-x[-rw-r--r--].config/waybar/modules/todo.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/waybar/modules/todo.go b/.config/waybar/modules/todo.go
index 97daaa4..2692ec9 100644..100755
--- a/.config/waybar/modules/todo.go
+++ b/.config/waybar/modules/todo.go
@@ -1,3 +1,5 @@
+#!/usr/bin/env yaegi
+
 // # Documentation
 // we try to read a file pointed to by WAYBAR_TODO_FILE.
 // While no particular format is assumed, we recommend
@@ -16,6 +18,7 @@ import (
 	"os"
 	"os/signal"
 	"regexp"
+  "runtime"
 	"strings"
 	"time"
 
@@ -127,6 +130,8 @@ func init() {
 }
 
 func main() {
+  runtime.GOMAXPROCS(1)
+
 	var (
 		updateC = make(chan os.Signal, 1)
 		cancelC = make(chan os.Signal, 1)