ngn

module
v0.0.0-...-6a24cc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: MIT

README

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.

Daemon daemon/main.go

Info:

Screens:

Gopher Badge gopherbadge/main.go

Info:

Screens:

Directories

Path Synopsis
TODO Menu navigation L/R/A/B
TODO Menu navigation L/R/A/B
TODO Paused icon.
TODO Paused icon.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL