![](https://placehold.co/800x15/9963ff/9963ff.png)
ngn Neon Gopher Notifications
Description
ngn contains two parts: one is the code that will flash the Gopher Badge, the other is the code that will run on your computer (as daemon), and will send notifications to the badge (via USB cable). Now notifications can annoy you on this device as well!
The code was tested on Linux, and I have no idea how it will work on MacOS and Windows.
Features
- Listens for notifications on "org.freedesktop.Notifications" interface.
- Does not prevent notifications on host computer.
- Flashes eyes (LEDs) on incomming notification.
- Keeps eyes slightly on while there is at least one notification in history.
- Displays sender application name, date, time, message, and application icon (if any).
- Keeps history of last 10 notifications.
- Navigates through history with Left and Right buttons.
- Clears complete notification history with A key.
- Clears single notification with B key.
Prerequisites
Run and build process
Clone this repo using:
git clone git@github.com:coltwillcox/ngn.git
Change directories into the ngn directory:
cd ngn
Make sure Gopher Badge is connected, then flash it:
tinygo flash -size short -target gopher-badge ./gopherbadge/main.go
Run daemon:
go run ./daemon/main.go
Test notifications:
notify-send "Hello world"
notify-send --icon=/home/user/Pictures/user.jpg "Hello world"
Build deamon:
go build ./daemon/main.go
then add file main
to startup item.
![](https://placehold.co/800x15/9963ff/9963ff.png)
Daemon daemon/main.go
Info:
Screens:
![](https://placehold.co/800x15/9963ff/9963ff.png)
Gopher Badge gopherbadge/main.go
Info:
Screens:
![](https://placehold.co/800x15/9963ff/9963ff.png)