How hablethedev/mfogtmigfswmm works
MFOGTMIGFSWMM is a small Go gaming timer for Sway. Users send start, stop, and reset commands through the documented Unix-socket bindings; the game loop updates and renders the timer in a floating transparent window. The timer state, socket handling, font setup, and Ebiten game are implemented together in main.go, so the diagram separates their responsibilities without implying separate packages. The README documents the external command workflow; implementation details are evidenced by the sampled main.go.
Main entry points: main.go Ebiten game loop
Components 7
Timer control
- Unix socket listener
main.go - Command handler
main.go - Timer state
main.go
Timer display
- Ebiten game loop
main.go - Font setup
main.go - Timer window
main.go
Other components
- Sway user
Connections 8
- Sway user → Unix socket listener: sends commands
README.md - Ebiten game loop → Unix socket listener: starts listener
main.go - Unix socket listener → Command handler: dispatches connections
main.go - Command handler → Timer state: updates state
main.go - Ebiten game loop → Timer state: updates elapsed time
main.go - Ebiten game loop → Timer state: reads for display
main.go - Ebiten game loop → Font setup: uses font face
main.go - Ebiten game loop → Timer window: runs game
main.go