A lightweight GTK 3 notes application for Linux system trays, supporting live editing of markdown syntax.
- Live in-place markdown rendering - See formatting as you type
- System tray integration - Quick access from your window manager
- Auto-save - Notes are saved automatically (500ms after last keystroke)
- Minimal UI - Clean toolbar with new note and navigation buttons
- Lightweight - Pure C, no web technologies, fast startup
- Hyperlink support - 'ctrl left click' links to open them
- Multi-level undo/redo - 'ctrl+z' to undo, 'ctrl+shift+z' or 'ctrl+y' to redo
| Syntax | Description |
|---|---|
# Header 1 |
Large bold header |
## Header 2 |
Medium bold header |
### Header 3 |
Small bold header |
**bold** |
Bold text |
*italic* |
Italic text |
`code` |
Inline code |
|
Code block |
- item |
List item |
- [ ] task |
Unchecked task with a clickable checkbox |
- [x] task |
Completed task with strikethrough text |
> quote |
Block quote |
[text](url) |
Link |
--- |
Horizontal rule |
Code blocks currently support a beta version of keyword highlighting for fenced languages c, java, and python.
Task lists also accept * and + bullets, indentation, and uppercase [X].
Click a checkbox to toggle completion. Press Enter to continue with a new unchecked
task, or press Enter on an empty task to end the list. Task states are saved as
plain Markdown.
Download the .deb from the GitHub Actions “Package” workflow artifacts (tag
builds) and install it with:
sudo apt install ./traymd_*.debDownload the .rpm from the GitHub Actions “Package” workflow artifacts (tag
builds) and install it with:
sudo dnf install ./traymd-*.rpmRun traymd to start the application. It will appear in your system tray.
- Left-click tray icon: Show/hide the main window
- New Note button: Create a new note
- Arrow buttons: Navigate between notes
If your desktop environment forces a context menu on left-click (common with AppIndicator-based trays), you can switch tray backends:
traymd --tray-backend=statusicon(left-click toggles window)traymd --tray-backend=appindicator(menu-first behavior; middle-click toggles)traymd --no-tray(disable tray icon; subsequent launches toggle window visibility)
Notes are stored in ~/.local/share/traymd/notes/ as plain markdown files.
Heading, list bullet, checkbox, and syntax highlight accents have separate light and dark defaults. System mode follows the GTK theme. In Settings, leave Use theme default checked for automatic colors; uncheck it to choose a custom color that stays the same across themes. Checking it again restores automatic colors.
Existing settings remain compatible: saved colors matching the original defaults
become automatic, while other colors are preserved as custom. Older settings did
not record whether a default was explicitly chosen, so an old custom choice that
exactly matches an original default is treated as automatic. The existing color
keys remain readable by older TrayMD versions; new *_custom flags record the
distinction. An older version that saves settings will discard these new flags.
make
sudo make installRun make test to run the GTK editor regression tests (requires a display).
This installs:
- Binary to
/usr/local/bin/traymd - Desktop file to
/usr/local/share/applications/traymd.desktop
sudo make uninstallsudo pacman -S gtk3 libayatana-appindicatorsudo apt install libgtk-3-dev libayatana-appindicator3-devsudo dnf install gtk3-devel libayatana-appindicator-gtk3-develMIT License
